From 01f83066ac7668f73be506afc869c717bfff7393 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Tue, 7 Aug 2018 09:21:34 +0200 Subject: Fix js build Signed-off-by: Christoph Wurst --- js/webpack.base.config.js | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'js') diff --git a/js/webpack.base.config.js b/js/webpack.base.config.js index 13bd91f..7e9cd80 100644 --- a/js/webpack.base.config.js +++ b/js/webpack.base.config.js @@ -1,4 +1,5 @@ const path = require('path'); +const {VueLoaderPlugin} = require('vue-loader') module.exports = { entry: './js/init.js', @@ -20,7 +21,25 @@ module.exports = { options: { loaders: {} } + }, + { + test: /\.css$/, + use: [ + { + loader: 'vue-style-loader' + }, + { + loader: 'css-loader', + options: { + modules: true, + localIdentName: '[local]_[hash:base64:8]' + } + } + ] } ] - } + }, + plugins: [ + new VueLoaderPlugin() + ] }; -- cgit v1.2.3