-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
index.ejs 没有自动引入 dll 文件 #381
Labels
Comments
Closed
<%= htmlWebpackPlugin.options.development ? '<script type="text/javascript" src="' + htmlWebpackPlugin.options.publicPath + 'roadhog.dll.js"></script>' : undefined %> |
为啥大家不怎么关注这个bug,难道用dllPlugin的是少数吗 |
@yangbin1994 你发的这一段代码是什么意思? |
webpackConfig.module.rules[0].exclude.push(/\.ejs$/)
webpackConfig.plugins = webpackConfig.plugins.concat([
new HtmlWebpackPlugin({
hash: true,
production,
development,
template: `ejs!src/index.ejs`,
minify: production ? { collapseWhitespace: true } : undefined,
publicPath: webpackConfig.output.publicPath,
}),
]) |
@yangbin1994 也就是说额外创建一个 |
@holynova 是的 |
具体可以参考https://github.com/zuiidea/antd-admin/blob/master/webpack.config.js#L35 |
grunmin
added a commit
to grunmin/roadhog
that referenced
this issue
Nov 16, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: