now with sourcemaps! (#8637)

This commit is contained in:
Evan Rusackas 2019-11-26 10:09:39 -08:00 committed by Maxime Beauchemin
parent acf0753504
commit badcf820c9
1 changed files with 18 additions and 3 deletions

View File

@ -203,7 +203,12 @@ const config = {
], ],
use: [ use: [
isDevMode ? 'style-loader' : MiniCssExtractPlugin.loader, isDevMode ? 'style-loader' : MiniCssExtractPlugin.loader,
'css-loader', {
loader: 'css-loader',
options: {
sourceMap: true,
},
},
], ],
}, },
{ {
@ -211,8 +216,18 @@ const config = {
include: APP_DIR, include: APP_DIR,
use: [ use: [
isDevMode ? 'style-loader' : MiniCssExtractPlugin.loader, isDevMode ? 'style-loader' : MiniCssExtractPlugin.loader,
'css-loader', {
'less-loader', loader: 'css-loader',
options: {
sourceMap: true,
},
},
{
loader: 'less-loader',
options: {
sourceMap: true,
},
},
], ],
}, },
/* for css linking images */ /* for css linking images */