diff options
author | Marco Ambrosini <marcoambrosini@pm.me> | 2020-03-27 18:16:23 +0300 |
---|---|---|
committer | Marco Ambrosini <marcoambrosini@pm.me> | 2020-03-27 18:16:23 +0300 |
commit | fe69fee78c2caa8731e8bc8ff2f95d38b2245a0f (patch) | |
tree | 0325c7898110e2adf00c8d1379cae1e69188eb78 /webpack.common.js | |
parent | dd46e4eedf8aeb661f10c106d526bc7a75d58932 (diff) |
fix code style config files
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
Diffstat (limited to 'webpack.common.js')
-rw-r--r-- | webpack.common.js | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/webpack.common.js b/webpack.common.js index dc0b55df1..2a2e1b3f2 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -11,38 +11,38 @@ module.exports = { 'talk-files-sidebar-loader': path.join(__dirname, 'src', 'mainFilesSidebarLoader.js'), 'talk-public-share-auth-sidebar': path.join(__dirname, 'src', 'mainPublicShareAuthSidebar.js'), 'talk-public-share-sidebar': path.join(__dirname, 'src', 'mainPublicShareSidebar.js'), - 'flow': path.join(__dirname, 'src', 'flow.js') + 'flow': path.join(__dirname, 'src', 'flow.js'), }, output: { path: path.resolve(__dirname, './js'), publicPath: '/js/', - filename: '[name].js' + filename: '[name].js', }, module: { rules: [ { test: /\.css$/, - use: ['vue-style-loader', 'css-loader'] + use: ['vue-style-loader', 'css-loader'], }, { test: /\.scss$/, - use: ['vue-style-loader', 'css-loader', 'sass-loader'] + use: ['vue-style-loader', 'css-loader', 'sass-loader'], }, { test: /\.(js|vue)$/, use: 'eslint-loader', exclude: /node_modules/, - enforce: 'pre' + enforce: 'pre', }, { test: /\.vue$/, loader: 'vue-loader', - exclude: /node_modules/ + exclude: /node_modules/, }, { test: /\.js$/, loader: 'babel-loader', - exclude: /node_modules/ + exclude: /node_modules/, }, { /** @@ -61,24 +61,24 @@ module.exports = { * "webpack doesn't perform commonjs transformation for * codesplitting. Need to set commonjs conversion." */ - ['@babel/env', { modules: 'commonjs' }] - ] - } + ['@babel/env', { modules: 'commonjs' }], + ], + }, }, { test: /\.(png|jpg|gif|svg)$/, loader: 'file-loader', options: { - name: '[name].[ext]?[hash]' - } - } - ] + name: '[name].[ext]?[hash]', + }, + }, + ], }, plugins: [ new VueLoaderPlugin(), - new StyleLintPlugin() + new StyleLintPlugin(), ], resolve: { - extensions: ['*', '.js', '.vue'] - } + extensions: ['*', '.js', '.vue'], + }, } |