diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-05-24 14:08:39 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-05-29 15:19:18 +0200 |
commit | b53a9130a60962fd2964d37b1ffafe1f3eaff5df (patch) | |
tree | 063c28661e65f9c5dec9b7e00c7d4ecea6e207d2 /core | |
parent | 21f9487939ecc0e37ca1dd5cecdde258cd55d89a (diff) | |
download | nextcloud-server-b53a9130a60962fd2964d37b1ffafe1f3eaff5df.tar.gz nextcloud-server-b53a9130a60962fd2964d37b1ffafe1f3eaff5df.zip |
Unify webpack config
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/webpack.js | 68 |
1 files changed, 5 insertions, 63 deletions
diff --git a/core/webpack.js b/core/webpack.js index 92b471c20b9..1cbd381aa4a 100644 --- a/core/webpack.js +++ b/core/webpack.js @@ -1,6 +1,5 @@ -const path = require('path'); -const webpack = require('webpack'); -const { VueLoaderPlugin } = require('vue-loader'); +const path = require('path') +const webpack = require('webpack') module.exports = [ { @@ -16,40 +15,8 @@ module.exports = [ module: { rules: [ { - test: /\.css$/, - use: ['vue-style-loader', 'style-loader', 'css-loader'] - }, - { - test: /\.scss$/, - use: ['vue-style-loader', 'style-loader', 'css-loader', 'sass-loader'] - }, - { test: /davclient/, use: 'exports-loader?dav' - }, - { - test: /\.js$/, - loader: 'babel-loader', - exclude: /node_modules/ - }, - { - test: /\.vue$/, - loader: 'vue-loader' - }, - { - test: /\.(png|jpg|gif)$/, - loader: 'url-loader', - options: { - name: '[name].[ext]?[hash]', - limit: 8192 - } - }, - { - test: /\.handlebars/, - loader: "handlebars-loader", - query: { - extensions: '.handlebars' - } } ] }, @@ -58,16 +25,8 @@ module.exports = [ '_': "underscore", $: "jquery", jQuery: "jquery" - }), - new VueLoaderPlugin(), - ], - resolve: { - alias: { - handlebars: 'handlebars/runtime' - }, - extensions: ['*', '.js'], - symlinks: false - } + }) + ] }, { entry: { @@ -77,23 +36,6 @@ module.exports = [ output: { filename: '[name].js', path: path.resolve(__dirname, 'js/dist') - }, - module: { - rules: [ - { - test: /\.js$/, - loader: 'babel-loader', - exclude: /node_modules/ - }, - { - test: /\.css$/, - use: ['style-loader', 'css-loader'] - }, - { - test: /\.scss$/, - use: ['style-loader', 'css-loader', 'sass-loader'] - }, - ] } } -]; +] |