react-webpack-starer v1.0.0
react-webpack-starter
This is the best, basic, batteries included webpack, babel, react, scss, starter repo available.
file structure
*
|---.gitignore
|---LICENSE
|---README.md
|---package.json
|---webpack.config.js
|---yarn.lock
|---src
|---js
|---index.js
|---html
|---index.html
|---style
|---index.scsswebpack setup
webpack has a basic setup, with autoprefixer, webpack copy plugin, and separate webpack prod and dev config.
babel
presets: es2015, react
loaders
style-loader, css-loader, postcss-loader, sass-loader,
file-loader
yarn
this starter uses yarn by default, it includes the following yarn scripts:watch: ./node_modules/.bin/webpack -d --watchdev: ./node_modules/.bin/webpack-dev-server -d --hot --inline --progress --colorsbuild: NODE_ENV=production ./node_modules/.bin/webpack -p
how to use
You can download the repo from here, and update the package.json, or alternative clone the repo:git clone git@github.com:oscarmorrison/react-webpack-starter.git [new-project-name]
then delete the .git dir, or change the repository url
8 years ago