mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(cloudcmd) add dangle-comma
This commit is contained in:
parent
4447d43c89
commit
ea08b92e8b
69 changed files with 242 additions and 242 deletions
|
|
@ -69,7 +69,7 @@ function extract(extractPlugin) {
|
|||
test: RegExp(`css/${filename}`),
|
||||
use: extractPlugin.extract([
|
||||
'css-loader',
|
||||
])
|
||||
]),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue