Answer the question
In order to leave comments, you need to log in
`
How to add a loader to an expression?
Hello, the code is
require(`!ejs-loader?{esModule:false}[email protected]/extensions/noscript.ejs`)(data)
Answer the question
In order to leave comments, you need to log in
You can build loader chains: require(`!a-loader!b-loader!c-loader!file')
But this is actually wrong. The correct approach is to register all the chains for the desired extension immediately in the webpack config, with all the necessary parameters and just do require(`file')
.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question