Fix eslint errors

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2018-05-12 12:13:49 +02:00
parent 893734dff9
commit e92c99fe22
2 changed files with 12 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
const path = require('path');
const webpack = require('webpack');
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
module.exports = {
node: {
@@ -27,7 +27,7 @@ module.exports = {
test: /\.css$/,
use: [
MiniCssExtractPlugin.loader,
"css-loader"
'css-loader'
]
}
]
@@ -38,25 +38,26 @@ module.exports = {
/* separate vendor chunk for node_modules and legacy scripts */
commons: {
test: /[\\/]node_modules[\\/]/,
name: "vendor",
chunks: "all"
name: 'vendor',
chunks: 'all'
},
legacy: {
test: /[\\/]legacy[\\/]/,
name: "vendor",
chunks: "all"
name: 'vendor',
chunks: 'all'
}
}
}
},
/* use external jQuery from server */
externals: {
"jquery": "jQuery"
'jquery': 'jQuery'
},
plugins: [
new MiniCssExtractPlugin('css/[name].css'),
new MiniCssExtractPlugin('[name].css'),
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery"
$: 'jquery',
jQuery: 'jquery'
})
]
};