Closed heron2014 closed 8 years ago
npm install -g webpack
npm install css-loader [--save-dev]
npm install style-loader [--save-dev]
$ webpack
babel-loader
for webpackbabel-preset-react
to configure Babel (comes with nothing by default)webpack.config.js
, plus preset to set babel up for React
https://github.com/globetown/crushlines/blob/master/webpack.config.js#L13-L20We added scripts to package.json to run webpack and server at the same time without rerunning the script.
We decided to not use ES6 for now