Skip to content

Latest commit

 

History

History
174 lines (86 loc) · 6.75 KB

some-config-desc.md

File metadata and controls

174 lines (86 loc) · 6.75 KB

webpack.base.conf.js

01.set file context dir config

02.set files enty config

03.set files output with project config config

04.set where to find npm lib config

05.set files match and how to handle the matched files config

06.use eslint to lint with project config config

07.handle .vue files with vue-loader config

08.handle .js files with babel-loader config

09.match image files and handle with url-loader or file-loader config

10.match mp4,mp3 and other media files and handle with url-loader or file-loader config

11.match font files and handle with url-loader or file-loader config

12.use freindly formmater for eslint config

webpack.dev.conf.js

01.set style loader for css/less/sass/scss/stylus/styl/postcss file config

02.set devtool for dev mode config

03.set webpack-dev-server options config

04.set process.env for webpack dev env with DefinePlugin config

05.set hot module replace config

06.tell HMR shows correct file names in console on update config

07.tell no emit on errors config

08.auto genarate index.html config

09.copy custom static assets config

10.set friendly errors config

11.set notify on errors with project config config

webpack.prod.conf.js

01.set style loader for css/less/sass/scss/stylus/styl/postcss file config

02.set the devtool tool with config config

03.set files output with project config config

04.set process.env for webpack pro env with DefinePlugin config

05.set uglify js config

06.extract css into its own file config

07.compress extracted CSS config

08.generate index.html with template for pro or test config

09.keep module.id stable when vendor modules does not change config

10.enable scope hoisting config

11.split vendor js into its own file config

12.extract webpack runtime and module manifest to its own file config

13.extracts shared chunks from code splitted chunks and bundles them config

14.copy custom static assets config

15.use gzip with config data config

16.use bundle analyzer with config data config

webpack.test.conf.js

01.set process.env for webpack test env with DefinePlugin config

02.to make lang="scss" work in test config

03.set style loader for css/less/sass/scss/stylus/styl/postcss file config

04.no need for app entry during tests config

05.set the devtool tool with config config

.babelrc

# for default env:

01.tell babel to use env presets? config

02.tell babel to your code has been in es5 syntax? config

03.tell babel to set what env translate to(browser x?)? config

04.tell babel to set what env translate to(node?..?)? config

05.tell babel to use transform for runtime in web app? config

06.tell babel to use dynamic import syntax? config

07.tell babel to use jsx for vue? config

08.tell babel to use some es7 feat in babel6? config

# for test env:

01.set test env flag? config

02.set lib module type is es6+? config

03.use coverage collection? config

.eslintrc.js

01.tell eslint he is the root config? config

02.tell eslint to lint all valid babel code with the fantastic ESLint? config

03.tell eslint your code is in ECMAScript modules?no for "script" and yes for "module" config

04.tell eslint to translate your code syntax to esx(3,5,6,7,8-?)? config

05.tell eslint to predefine global variables for new ES6 global variables? config

06.tell eslint to predefine global variables for browser env? config

07.tell eslint to predefine global variables for node env? config

08.tell eslint to use some rule from some extend? config

09.tell eslint to use some plugin to handle some rule? config

10.tell eslint to add some custom rules? config

11.tell eslint to use eslint-config-airbnb-base 's rule? config

12.tell eslint to use eslint-plugin-html to lin .vue file? config

13.tell eslint to use webpack's resolver to check if imports actually resolve config

.postcssrc.js

01.to transform @import rules by inlining content?

02.to rebase, inline or copy on url()?

03.to fix an element's dimensions to an aspect ratio?

04.write SVGs directly in CSS?

05.to use the latest CSS syntax today?

06.generates rem units from pixel units?

07.automatically append content property for viewport-units-buggyfill?

08.minify with cssno ?

09.automatically append prefixer?