https://github.com/opensrc0/webpackq
https://github.com/opensrc0/webpackq
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/opensrc0/webpackq
- Owner: opensrc0
- Created: 2017-06-12T11:12:18.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-12T11:29:26.000Z (about 9 years ago)
- Last Synced: 2025-04-05T07:27:02.111Z (about 1 year ago)
- Language: HTML
- Size: 294 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.