cartodb/webpack/new-dashboard/vue-loader.conf.js

23 lines
470 B
JavaScript
Raw Normal View History

2020-06-15 10:58:47 +08:00
'use strict';
const utils = require('./utils');
const isProduction = process.env.NODE_ENV === 'production';
const sourceMapEnabled = isProduction;
module.exports = {
loaders: utils.cssLoaders({
sourceMap: sourceMapEnabled,
extract: isProduction
}),
cssSourceMap: sourceMapEnabled,
transformToRequire: {
video: ['src', 'poster'],
source: 'src',
img: 'src',
image: 'xlink:href'
},
compilerOptions: {
whitespace: 'condense'
}
};