diff options
author | dartcafe <github@dartcafe.de> | 2021-11-02 23:40:40 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-11-02 23:40:40 +0300 |
commit | f1ac089ecbe0cfc935c850233b012714fb9c9f9f (patch) | |
tree | 73c7349d1327a4afe07d83cd5d53688175a8f6a0 /webpack.config.js | |
parent | 7c34426c24b1d14c649ba9b73a3ad68630dc945d (diff) |
updated webpack config
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/webpack.config.js b/webpack.config.js index 8ec9ae66..fe8877bd 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,7 +1,6 @@ const path = require('path') const webpack = require('webpack') const { VueLoaderPlugin } = require('vue-loader') -const { CleanWebpackPlugin } = require('clean-webpack-plugin') const ESLintPlugin = require('eslint-webpack-plugin') const StyleLintPlugin = require('stylelint-webpack-plugin') const TerserPlugin = require('terser-webpack-plugin') @@ -13,13 +12,14 @@ const isDev = buildMode === 'development' module.exports = { mode: buildMode, - devtool: isDev ? 'cheap-source-map' : 'source-map', + devtool: isDev ? 'eval' : false, entry: { polls: path.join(__dirname, 'src/js/', 'main.js'), userSettings: path.join(__dirname, 'src/js/', 'userSettings.js'), adminSettings: path.join(__dirname, 'src/js/', 'adminSettings.js'), }, output: { + clean: true, path: path.resolve(__dirname, './js'), publicPath: '/js/', filename: '[name].js', @@ -96,7 +96,6 @@ module.exports = { plugins: [ new VueLoaderPlugin(), - new CleanWebpackPlugin(), new webpack.DefinePlugin({ appName: JSON.stringify('polls'), }), |