diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-06-06 19:22:35 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-06-07 08:35:02 +0200 |
commit | 14cb805cf12b97f2f6f56a9a4119fb91dc02ec39 (patch) | |
tree | f14b618988d60ca9bea841f5f807774bb61983b7 /settings/webpack.common.js | |
parent | 62e29abc5b2919870b7474bd2b3e732eacc4287a (diff) | |
download | nextcloud-server-14cb805cf12b97f2f6f56a9a4119fb91dc02ec39.tar.gz nextcloud-server-14cb805cf12b97f2f6f56a9a4119fb91dc02ec39.zip |
Bump settings config
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'settings/webpack.common.js')
-rw-r--r-- | settings/webpack.common.js | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/settings/webpack.common.js b/settings/webpack.common.js index ab9a39c83e2..93cafad4188 100644 --- a/settings/webpack.common.js +++ b/settings/webpack.common.js @@ -1,9 +1,10 @@ const path = require('path') +const { VueLoaderPlugin } = require('vue-loader'); module.exports = { entry: './src/main.js', output: { - path: path.resolve(__dirname, './js'), + path: __dirname + '/js', publicPath: '/dist/', filename: 'main.js' }, @@ -12,39 +13,30 @@ module.exports = { { test: /\.css$/, use: [ - 'vue-style-loader', 'css-loader' ], }, { test: /\.scss$/, use: [ - 'vue-style-loader', - 'css-loader', + 'css-loader', + 'sass-loader' ], }, { test: /\.vue$/, loader: 'vue-loader', - options: { - loaders: {} - // other vue-loader options go here - } }, { test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/ }, - { - test: /\.(png|jpg|gif|svg)$/, - loader: 'file-loader', - options: { - name: '[name].[ext]?[hash]' - } - } ] }, + plugins: [ + new VueLoaderPlugin() + ], resolve: { alias: { 'vue$': 'vue/dist/vue.esm.js' |