Commit 1efd6b2f authored by Jonathan Chan's avatar Jonathan Chan Committed by Naoyuki Kanezawa

fix loader-utils spelling (#265)

parent 512067bb
import loaderUrils from 'loader-utils' import loaderUtils from 'loader-utils'
module.exports = function (content) { module.exports = function (content) {
this.cacheable() this.cacheable()
const query = loaderUrils.parseQuery(this.query) const query = loaderUtils.parseQuery(this.query)
const name = query.name || '[hash].[ext]' const name = query.name || '[hash].[ext]'
const context = query.context || this.options.context const context = query.context || this.options.context
const regExp = query.regExp const regExp = query.regExp
const opts = { context, content, regExp } const opts = { context, content, regExp }
const interpolatedName = loaderUrils.interpolateName(this, name, opts) const interpolatedName = loaderUtils.interpolateName(this, name, opts)
this.emitFile(interpolatedName, content) this.emitFile(interpolatedName, content)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment