Answer the question
In order to leave comments, you need to log in
How to make a webpack template *.jade entry point?
Hello.
Now I have something like
entry: {
application: _path + '/app/app.js'
}
plugins: [
new HtmlPlugin({
title: 'Title',
chunks: ['application', 'vendors'],
filename: 'index.html',
template: path.join(_path, 'app', 'assets', 'templates', 'layouts', 'index.html')
})
]
Answer the question
In order to leave comments, you need to log in
in the 2nd version of html-webpack-plugin you can use loaders for templates
{
entry: {
application: _path + '/app/app.js'
}
module: {
loaders: [{
test: /\.jade$/,
loader: "jade-loader"
}]
},
plugins: [
new HtmlPlugin({
title: 'Title',
chunks: ['application', 'vendors'],
filename: 'index.html',
template: path.join(_path, 'app', 'assets', 'templates', 'layouts', 'index.jade')
})
]
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question