https://github.com/opensrc0/webpackworkingsetup
https://github.com/opensrc0/webpackworkingsetup
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/opensrc0/webpackworkingsetup
- Owner: opensrc0
- Created: 2017-09-14T10:01:56.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-14T10:02:18.000Z (over 8 years ago)
- Last Synced: 2025-07-25T01:59:26.446Z (11 months ago)
- Language: HTML
- Size: 293 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Protips
1. Naming webpack.config.js to webpack.config.babel.js can help in writing webpack config file in es6 and will get it transpiled to es5.
2. `context` - To find files in a specific directory
3. Flag `-s` supress npm errors.
4. path - Need full path directory
5. publicPath - to load from '/dist/'
6. sourcemaps in webpack - Add property 'devtool'
a. eval - for dev (Quick rebuild & inline source maps)
b. source-map - for prod (source-maps have separate files)
7.pathInfo - Adds string info to all require statements in webpack build files. Its kind of lots of string in build files. So, its not recommended in webpack production build.