-
Notifications
You must be signed in to change notification settings - Fork 1
/
webpack.config.js
40 lines (38 loc) · 912 Bytes
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
module.exports = (env, options) => {
console.log("Env:", env);
console.log("Options:", options);
return {
// your configuration here
};
};
/**
TODO:
1. Setup default configuration with no rules
1. dev mode
2. entry points
3. output
4. resolve
1. extensions
2. aliases
5. devtool
6. Dev server
2. Setup babel
3. Setup browserslist
4. Setup css
5. Setup postcss
1. autoprefixer
2. flexbug fixes
6. Setup sass
7. Setup image process
9. Plugins
10. Split configuration for production
11. Setup optimisations
1. Minification
2. Long-term caching
12. Enable source maps
13. Bundle analyzer
14. Fix watch mode for docker users
15. Dynamic imports
16. CSS Modules
17. Bonus: How to keep production clean from console logs
*/