Answer the question
In order to leave comments, you need to log in
How to make jq available from build file in webpack?
How to make jq available from build file in webpack?
I connect to the jq assembly file through
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery',
'window.jQuery': 'jquery',
}),
Answer the question
In order to leave comments, you need to log in
In the webpack.config.js settings, you need to add the following code
module: {
loaders: [
{
test: require.resolve('jquery'),
loader: 'expose?$!expose?jQuery',
}
]
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question