Skip to content

Commit db75f1f

Browse files
KagamiChanLinusBorg
authored andcommitted
pass cssSourceMap option to vue-loader (#756)
1 parent ac0ea02 commit db75f1f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

template/build/vue-loader.conf.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22
const utils = require('./utils')
33
const config = require('../config')
44
const isProduction = process.env.NODE_ENV === 'production'
5+
const sourceMapEnabled = isProduction
6+
? config.build.productionSourceMap
7+
: config.dev.cssSourceMap
8+
59

610
module.exports = {
711
loaders: utils.cssLoaders({
8-
sourceMap: isProduction
9-
? config.build.productionSourceMap
10-
: config.dev.cssSourceMap,
12+
sourceMap: sourceMapEnabled,
1113
extract: isProduction
1214
}),
15+
cssSourceMap: sourceMapEnabled,
1316
transformToRequire: {
1417
video: 'src',
1518
source: 'src',

0 commit comments

Comments
 (0)