https://github.com/pod4g/learnwebpack
webpacl + npm script 实例项目
https://github.com/pod4g/learnwebpack
Last synced: about 2 months ago
JSON representation
webpacl + npm script 实例项目
- Host: GitHub
- URL: https://github.com/pod4g/learnwebpack
- Owner: pod4g
- Created: 2016-11-01T06:52:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-07T02:47:25.000Z (over 8 years ago)
- Last Synced: 2025-01-21T02:09:29.176Z (3 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# learnWebpack
webpacl + npm script 实例项目# 启动项目
`npm start`
# 一个坑
`ERROR in multi home
Module not found: Error: Cannot resolve module 'webpack/hot/dev-server' in /Users/liyanfeng/study/learnWebpack/src`解决这个问题的办法是在`webpack.config.js`中
```javascript
devServer: {
historyApiFallback: true,
hot: false, // 注意这个一定要设置成false,否则就报上述错误
inline: true,
progress: true
},
```