mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
fix loader-utils spelling (#265)
This commit is contained in:
parent
512067bb0a
commit
1efd6b2f73
|
@ -1,14 +1,14 @@
|
||||||
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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue