cartodb-4.29/webpack/new-dashboard/vue-loader.conf.js
2020-06-15 10:58:47 +08:00

23 lines
470 B
JavaScript

'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'
}
};