Answer the question
In order to leave comments, you need to log in
How to include jquery using bower & webpack?
In webpack I include all my files through
new HtmlWebpackPlugin({
template: path.resolve(__dirname, 'app/index.pug'),
inject: 'body'
}),
meta(charset="utf8")
meta(name="viewport", content="width=device-width, initial-scale=1")
script(src="jquery/dist/jquery.min.js")
{
test: /\.(pug|jade)$/,
exclude: /(node_modules|bower_components)/,
use: [
'html-loader',
{
loader: 'pug-html-loader',
options: {
data: {}
}}
]
},
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question