mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-16 10:11:54 +01:00
26 lines
470 B
TypeScript
26 lines
470 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',
|
|
replace: constants.themeColorForeground,
|
|
flags: 'g'
|
|
}
|
|
}, {
|
|
loader: 'replace-string-loader',
|
|
options: {
|
|
search: '$theme-color',
|
|
replace: constants.themeColor,
|
|
flags: 'g'
|
|
}
|
|
}]
|
|
});
|