wip
This commit is contained in:
@@ -2,12 +2,30 @@
|
||||
* Vue
|
||||
*/
|
||||
|
||||
const constants = require('../../../src/const.json');
|
||||
|
||||
export default () => ({
|
||||
test: /\.vue$/,
|
||||
exclude: /node_modules/,
|
||||
loader: 'vue-loader',
|
||||
options: {
|
||||
cssSourceMap: false,
|
||||
preserveWhitespace: false
|
||||
}
|
||||
use: [{
|
||||
loader: 'vue-loader',
|
||||
options: {
|
||||
cssSourceMap: false,
|
||||
preserveWhitespace: false
|
||||
}
|
||||
}, {
|
||||
loader: 'webpack-replace-loader',
|
||||
options: {
|
||||
search: '$theme-color',
|
||||
replace: constants.themeColor,
|
||||
attr: 'g'
|
||||
}
|
||||
}, {
|
||||
loader: 'webpack-replace-loader',
|
||||
query: {
|
||||
search: '$theme-color-foreground',
|
||||
replace: constants.themeColorForeground,
|
||||
attr: 'g'
|
||||
}
|
||||
}]
|
||||
});
|
||||
|
Reference in New Issue
Block a user