Skip to content
Snippets Groups Projects
Commit 35a4baca authored by Neuber, Eugen Ramon's avatar Neuber, Eugen Ramon :speech_balloon:
Browse files

Add support for ads in browser console output

Proof of concept for text display from a separate json file,
all array items of key 'hi' are printed to the browser console.
parent dc2c2ff1
No related branches found
No related tags found
1 merge request!81Add info tooltip
Pipeline #55216 failed
......@@ -31,7 +31,8 @@
"rollup-plugin-copy": "^3.1.0",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-serve": "^1.0.1",
"rollup-plugin-terser": "^7.0.2"
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-replace": "^2.2.0"
},
"dependencies": {
"@dbp-toolkit/auth": "^0.2.2",
......
......@@ -9,6 +9,7 @@ import url from "@rollup/plugin-url";
import del from 'rollup-plugin-delete';
import emitEJS from 'rollup-plugin-emit-ejs'
import {getPackagePath, getDistPath} from '../../rollup.utils.js';
import replace from 'rollup-plugin-replace';
const pkg = require('./package.json');
const build = (typeof process.env.BUILD !== 'undefined') ? process.env.BUILD : 'local';
......@@ -86,6 +87,9 @@ export default (async () => {
{src: 'assets/favicon.ico', dest:'dist'},
],
}),
replace({
'process.env.NODE_ENV': JSON.stringify('production')
}),
(process.env.ROLLUP_WATCH === 'true') ? serve({contentBase: 'dist', host: '127.0.0.1', port: 8002}) : false
]
};
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment