reactivated css extract plugin for dev webpack as we want styles available event without js enabled

This commit is contained in:
Bachir Soussi Chiadmi 2019-07-14 15:55:48 +02:00
parent c0d1055b3b
commit 8a82e447b9
3 changed files with 1357 additions and 7 deletions

View File

@ -13,18 +13,20 @@ module.exports = merge(baseConfig, {
{ {
test: /\.css$/, test: /\.css$/,
use: [ use: [
process.env.NODE_ENV !== 'production' // process.env.NODE_ENV !== 'production'
? 'vue-style-loader' // ? 'vue-style-loader'
: MiniCssExtractPlugin.loader, // : MiniCssExtractPlugin.loader,
MiniCssExtractPlugin.loader,
// 'vue-style-loader', // 'vue-style-loader',
'css-loader' 'css-loader'
] ]
}, { }, {
test: /\.scss$/, test: /\.scss$/,
use: [ use: [
process.env.NODE_ENV !== 'production' // process.env.NODE_ENV !== 'production'
? 'vue-style-loader' // ? 'vue-style-loader'
: MiniCssExtractPlugin.loader, // : MiniCssExtractPlugin.loader,
MiniCssExtractPlugin.loader,
// 'vue-style-loader', // 'vue-style-loader',
'css-loader', 'css-loader',
'sass-loader' 'sass-loader'

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,7 @@ global-css:
theme: theme:
assets/fonts/ubuntu/ubuntu.css: {} assets/fonts/ubuntu/ubuntu.css: {}
assets/styles/mdi/css/materialdesignicons.min.css: {} assets/styles/mdi/css/materialdesignicons.min.css: {}
# assets/dist/main.css: {} assets/dist/main.css: {}
global-js: global-js:
version: VERSION version: VERSION