chore(cloudcmd) add dangle-comma

This commit is contained in:
coderaiser 2019-02-01 18:26:09 +02:00
parent 4447d43c89
commit ea08b92e8b
69 changed files with 242 additions and 242 deletions

View file

@ -69,7 +69,7 @@ function extract(extractPlugin) {
test: RegExp(`css/${filename}`),
use: extractPlugin.extract([
'css-loader',
])
]),
};
}

View file

@ -32,7 +32,7 @@ const babelDev = {
plugins: [
'module:babel-plugin-macros',
'@babel/plugin-proposal-object-rest-spread',
]
],
};
const rules = clean([
@ -45,12 +45,12 @@ const rules = clean([
test: /sw\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
options: babelDev
options: babelDev,
}]);
const plugins = [
new EnvironmentPlugin({
NODE_ENV: 'production'
NODE_ENV: 'production',
}),
new ServiceWorkerWebpackPlugin({
@ -66,7 +66,7 @@ const splitChunks = {
module.exports = {
resolve: {
symlinks: false
symlinks: false,
},
devtool,
optimization: {
@ -100,7 +100,7 @@ module.exports = {
publicPath: '/dist/',
},
externals: [
externals
externals,
],
module: {
rules,