diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-11-07 23:47:37 +0100 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-11-07 23:47:37 +0100 |
commit | 7e4a2e3e3a45f0dd302ab3b0e3ac49ad7189eba4 (patch) | |
tree | c2a65bd1af9bb55de7680625557260566a1e6087 /webpack.config.js | |
parent | 30c8c2f2b05bab8b962b51c0faeb282980324a5c (diff) |
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/webpack.config.js b/webpack.config.js index 1ab2401..75b501d 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -17,14 +17,14 @@ const config = { output: { path: path.resolve(__dirname, 'app/build'), filename: '[name].js', + clean: true, }, resolve: { - extensions: ['.js', '.vue'], - alias: { '~': path.join(__dirname, 'app/src'), }, + extensions: ['.js', '.vue'], }, module: { @@ -33,6 +33,7 @@ const config = { test: /\.vue$/, loader: 'vue-loader', }, + { test: /\.js$/, loader: 'babel-loader', @@ -50,6 +51,7 @@ const config = { }, exclude: path.resolve(__dirname, 'node_modules'), }, + { test: /\.s?css$/, use: [ @@ -71,13 +73,15 @@ const config = { }, plugins: [ + new VueLoaderPlugin(), + new MiniCssExtractPlugin(), + new webpack.DefinePlugin({ __VUE_OPTIONS_API__: true, __VUE_PROD_DEVTOOLS__: false, }), + new webpack.ExternalsPlugin('commonjs', ['electron']), - new MiniCssExtractPlugin(), - new VueLoaderPlugin(), ], target: 'electron-renderer', |