This commit is contained in:
syuilo
2018-02-16 02:53:54 +09:00
parent a7601f7aa4
commit 085ac938c2
6 changed files with 28 additions and 8 deletions

View File

@@ -8,12 +8,12 @@ export default lang => {
const replacer = new Replacer(lang);
return {
enforce: 'pre',
//enforce: 'post',
test: /\.(vue|js|ts)$/,
exclude: /node_modules/,
loader: 'string-replace-loader',
loader: 'replace',
query: {
search: replacer.pattern,
search: replacer.pattern.toString(),
replace: replacer.replacement
}
};