Skip to content

Commit 321a763

Browse files
committed
refactor: loaderPath
1 parent 13f1ddb commit 321a763

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
const loaderPath = require.resolve('./lib/injector.js')
2+
13
// for chainWebpack
24
module.exports = function(config, options) {
35
config.module
46
.rule('vue')
57
.use('vue-filename-injector')
6-
.loader(require.resolve('./lib/injector.js'))
8+
.loader(loaderPath)
79
.options(options)
810
.after('vue-loader')
911
.end()

0 commit comments

Comments
 (0)