You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
191 B
7 lines
191 B
8 years ago
|
const hash = require('hash-sum')
|
||
|
|
||
|
module.exports = function (code) {
|
||
|
const id = hash(this.request) // simulating vue-loader module id injection
|
||
|
return code.replace('__MODULE_ID__', id)
|
||
|
}
|