dudulaopo833 / Tools-Learning

各种杂七杂八-错误处理等
0 stars 0 forks source link

Webpack #7

Open dudulaopo833 opened 7 years ago

dudulaopo833 commented 7 years ago

Webpack link :

Webpack 1 - https://webpack.github.io/docs/ Webpack 2 - https://webpack.js.org/ 中文文档2.2 :http://www.css88.com/doc/webpack2/loaders/bundle-loader/

devtool

webpackConfig.devtool = 'source-map';

Tip: Use source-map can debug in browser.

Plugins:

new SimpleProgressPlugin(), new StyleLintPlugin(),

Issue

After compile, it will show $export is not a function need to exclude node_module in babel-loader or add some parameter in babel-runtime plugin