-
Notifications
You must be signed in to change notification settings - Fork 14
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
关于webpack配置 #144
Labels
Comments
1. 配置异步加载文件的hash值,以便重新构建后不需要清除浏览器缓存来使文件生效 output: {
path: path.join(__dirname, 'dist'), // path配置只在build时才有用到
filename: '[name].js',
chunkFilename: '[name].[chunkhash:8].js', // 给js文件加上chunkhash值
// ...
},
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
配置清单
The text was updated successfully, but these errors were encountered: