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

23 lines
470 B
JavaScript
Raw Normal View History

2024-04-06 13:25:13 +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'
}
};