Former-commit-id: dfb70c261eb670133d905f25fc525f59d01a05f2 Former-commit-id: 38532f4c1cd8b63afadd21d80e4f7a56200ecbdf Former-commit-id: 589c68cc6aad2aadb828be5bda04c9eea2ad0bed
26 lines
610 B
JavaScript
Executable File
26 lines
610 B
JavaScript
Executable File
'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
|
|
}),
|
|
i18n: '@kazupon/vue-i18n-loader'
|
|
},
|
|
cssSourceMap: sourceMapEnabled,
|
|
cacheBusting: config.dev.cacheBusting,
|
|
transformToRequire: {
|
|
video: ['src', 'poster'],
|
|
source: 'src',
|
|
img: 'src',
|
|
image: 'xlink:href'
|
|
}
|
|
}
|