summaryrefslogtreecommitdiffstats
path: root/testing-scheduler/ui/build/vue-loader.conf.js
diff options
context:
space:
mode:
authorLeoQi <QibinZheng2014@tongji.edu.cn>2018-09-05 12:31:58 +0800
committerLeoQi <QibinZheng2014@tongji.edu.cn>2018-09-05 12:31:58 +0800
commitad8664fadb31505c9c848d2f938101b2081dc09f (patch)
tree2e308fff7748d4430aef7500a73042955e27323f /testing-scheduler/ui/build/vue-loader.conf.js
parent4822983c35de8583b396a689d8a1bbdae193f39d (diff)
repair .gitignore bug
JIRA: BOTTLENECK-244 modify testing-scheduler/.gitignore to include the dir: testing-scheduler/ui/build Change-Id: I99ed672bb0e9a2fb2c70feba9a89a699a9ca8455 Signed-off-by: LeoQi <QibinZheng2014@tongji.edu.cn>
Diffstat (limited to 'testing-scheduler/ui/build/vue-loader.conf.js')
-rw-r--r--testing-scheduler/ui/build/vue-loader.conf.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/testing-scheduler/ui/build/vue-loader.conf.js b/testing-scheduler/ui/build/vue-loader.conf.js
new file mode 100644
index 00000000..33ed58bc
--- /dev/null
+++ b/testing-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'
+ }
+}