diff options
author | nicolargo <nicolas@nicolargo.com> | 2021-11-04 10:31:25 +0100 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2021-11-04 10:31:25 +0100 |
commit | c85c74bd3089aeb1fe0c77fb2b29ea4ecaa1bbb8 (patch) | |
tree | fb33e81b9db90f2e48ac6285c0dc7259015cc3c2 /glances/outputs/static/webpack.config.js | |
parent | 51bab2d453935130691802e3dea8ff8c988fdca9 (diff) |
Error while genrating the UI. Perhaps related to https://stackoverflow.com/questions/42375468/uglify-syntaxerror-unexpected-token-puncissue1942
Diffstat (limited to 'glances/outputs/static/webpack.config.js')
-rw-r--r-- | glances/outputs/static/webpack.config.js | 40 |
1 files changed, 28 insertions, 12 deletions
diff --git a/glances/outputs/static/webpack.config.js b/glances/outputs/static/webpack.config.js index c9e7e081..b28f9854 100644 --- a/glances/outputs/static/webpack.config.js +++ b/glances/outputs/static/webpack.config.js @@ -12,9 +12,9 @@ module.exports = { filename: "glances.js", sourceMapFilename: "glances.map.js", }, - devtool: "#source-map", + devtool: "source-map", module: { - loaders: [ + rules: [ { test: /\.scss$/, use: [{ @@ -37,29 +37,45 @@ module.exports = { }, { test: /\.css$/, - loader: "style-loader!css-loader", + // loader: "style-loader!css-loader", + use: [{ + loader: "style-loader", + }, { + loader: "css-loader", + }] }, { test: /\.(png|jpg|gif|svg|ttf|woff|woff2|eot)$/, - loader: "url-loader", - options: { - limit: 10000, - } + use: [{ + loader: "url-loader", + options: { + limit: 10000, + } + }] }, { test: /\.html/, - loader: "ngtemplate-loader!html-loader" + // loader: "ngtemplate-loader!html-loader" + use: [{ + loader: "ngtemplate-loader", + }, { + loader: "html-loader", + }] }, { test: require.resolve("angular"), - loader: "exports-loader?window.angular" + use: [{ + loader: "exports-loader?window.angular" + }] }, ], }, plugins: [ new CleanWebpackPlugin("./public/*.*"), - new CopyWebpackPlugin([ - { from: "./images/favicon.ico" } - ]), + new CopyWebpackPlugin({ + patterns: [ + { from: "./images/favicon.ico" }, + ], + }), ] };
\ No newline at end of file |