summaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js12
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',