We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 207ee29 commit 4193165Copy full SHA for 4193165
template/build/vue-loader.conf.js
@@ -2,14 +2,17 @@
2
const utils = require('./utils')
3
const config = require('../config')
4
const isProduction = process.env.NODE_ENV === 'production'
5
+const sourceMapEnabled = isProduction
6
+ ? config.build.productionSourceMap
7
+ : config.dev.cssSourceMap
8
+
9
10
module.exports = {
11
loaders: utils.cssLoaders({
- sourceMap: isProduction
- ? config.build.productionSourceMap
- : config.dev.cssSourceMap,
12
+ sourceMap: sourceMapEnabled,
13
extract: isProduction
14
}),
15
+ cssSourceMap: sourceMapEnabled,
16
transformToRequire: {
17
video: 'src',
18
source: 'src',
0 commit comments