mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-08 19:43:08 +02:00
25 lines
463 B
TypeScript
25 lines
463 B
TypeScript
/**
|
|
* Theme color provider
|
|
*/
|
|
|
|
const constants = require('../../../src/const.json');
|
|
|
|
export default () => ({
|
|
enforce: 'pre',
|
|
test: /\.vue$/,
|
|
exclude: /node_modules/,
|
|
use: [/*{
|
|
loader: 'replace-string-loader',
|
|
options: {
|
|
search: /\$theme\-color\-foreground/g,
|
|
replace: constants.themeColorForeground
|
|
}
|
|
}, */{
|
|
loader: 'replace-string-loader',
|
|
options: {
|
|
search: '$theme-color',
|
|
replace: constants.themeColor,
|
|
flags: 'g'
|
|
}
|
|
}]
|
|
});
|