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$/,
use: [
process.env.NODE_ENV !== 'production'
? 'vue-style-loader'
: MiniCssExtractPlugin.loader,
// process.env.NODE_ENV !== 'production'
// ? 'vue-style-loader'
// : MiniCssExtractPlugin.loader,
MiniCssExtractPlugin.loader,
// 'vue-style-loader',
'css-loader'
]
}, {
test: /\.scss$/,
use: [
process.env.NODE_ENV !== 'production'
? 'vue-style-loader'
: MiniCssExtractPlugin.loader,
// process.env.NODE_ENV !== 'production'
// ? 'vue-style-loader'
// : MiniCssExtractPlugin.loader,
MiniCssExtractPlugin.loader,
// 'vue-style-loader',
'css-loader',
'sass-loader'

File diff suppressed because it is too large Load Diff

View File

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