diff options
Diffstat (limited to 'test-scheduler/ui/build/vue-loader.conf.js')
-rw-r--r-- | test-scheduler/ui/build/vue-loader.conf.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test-scheduler/ui/build/vue-loader.conf.js b/test-scheduler/ui/build/vue-loader.conf.js new file mode 100644 index 00000000..33ed58bc --- /dev/null +++ b/test-scheduler/ui/build/vue-loader.conf.js @@ -0,0 +1,22 @@ +'use strict' +const utils = require('./utils') +const config = require('../config') +const isProduction = process.env.NODE_ENV === 'production' +const sourceMapEnabled = isProduction + ? config.build.productionSourceMap + : config.dev.cssSourceMap + +module.exports = { + loaders: utils.cssLoaders({ + sourceMap: sourceMapEnabled, + extract: isProduction + }), + cssSourceMap: sourceMapEnabled, + cacheBusting: config.dev.cacheBusting, + transformToRequire: { + video: ['src', 'poster'], + source: 'src', + img: 'src', + image: 'xlink:href' + } +} |