diff options
author | Joas Schilling <coding@schilljs.com> | 2019-10-18 12:33:38 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-10-18 14:14:09 +0300 |
commit | 1fc32b8f2901aa4f4d41650df8449ea1d64b4dfb (patch) | |
tree | a227d24fd5811927027c4dc38a0cf2b0ae529366 /webpack.common.js | |
parent | 1743f056f3e46cf1f4d20ade5345a1bfb07d52d1 (diff) |
Move AllowedGroupsSettings to src/
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'webpack.common.js')
-rw-r--r-- | webpack.common.js | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/webpack.common.js b/webpack.common.js index 482dd81e3..74a66ced8 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -1,16 +1,16 @@ const path = require('path') const { VueLoaderPlugin } = require('vue-loader') const StyleLintPlugin = require('stylelint-webpack-plugin') -const packageJson = require('./package.json') -const appName = packageJson.name module.exports = { - entry: path.join(__dirname, 'src', 'main.js'), + entry: { + 'admin/allowed-groups': path.join(__dirname, 'src', 'AllowedGroupsSettings.js'), + 'talk': path.join(__dirname, 'src', 'main.js') + }, output: { path: path.resolve(__dirname, './js'), publicPath: '/js/', - filename: `${appName}.js`, - chunkFilename: 'chunks/[name]-[hash].js' + filename: '[name].js' }, module: { rules: [ @@ -37,6 +37,13 @@ module.exports = { test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/ + }, + { + test: /\.(png|jpg|gif|svg)$/, + loader: 'file-loader', + options: { + name: '[name].[ext]?[hash]' + } } ] }, |