Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/silvestrevivo/webpack-starter
Project starter template built with WebPack. It contains Babel to compile ES6 to ES5, as well as CSS and SASS loaders.
https://github.com/silvestrevivo/webpack-starter
babel-webpack babeljs boilerplate-template browsersync css3 html5 javascript postcss starter-project starter-template template webpack2
Last synced: about 1 month ago
JSON representation
Project starter template built with WebPack. It contains Babel to compile ES6 to ES5, as well as CSS and SASS loaders.
- Host: GitHub
- URL: https://github.com/silvestrevivo/webpack-starter
- Owner: silvestrevivo
- Created: 2017-09-07T19:44:48.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-08T07:46:23.000Z (over 6 years ago)
- Last Synced: 2024-09-29T06:22:03.629Z (about 2 months ago)
- Topics: babel-webpack, babeljs, boilerplate-template, browsersync, css3, html5, javascript, postcss, starter-project, starter-template, template, webpack2
- Language: CSS
- Size: 416 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a code boilerplate built with WebPack which it could be used as starter project template. It
contains Babel to compile _ES6_ to _ES5_ as well as _CSS_ and _SASS_ loaders. It comes ready to
install dependencies for _React_ and _ReactDOM_. It refreshs automatically through the scripts from
the package.json file and _BrowserSync_ plugin. CSS files come with autoprefixer updated following
[caniuse][1] and using _Postcss_. It comes provided with ESLint and Prettier too, following rules
and stylesheet of [Airbnb][2].## How to use it
This template is based on _npm package_, thus to run it, download the repo to your local computer
and then in the folder of your project:$ npm install
$ npm start
The project will load on the server localhost:3000 using _BrowserSync_. Other usefull commands to
know:```
$ npm run build It runs WebPack as the most simple way to compile
$ npm run watch It runs WebPack in watch mode
$ npm run prod it compiles the bundle.js to send to production
```## Modules installed
* Babel, babel-core, babel-loader, babel-preset-env, babel-preset-react
* Browser-sync, browser-sync-webpack-plugin
* Style-loader, css-loader, sass-loader, node-sass.
* Normalize.css
* Postcss-loader, lost, rucksack-css, cssnano, autoprefixer, browserslist.
* Extract-text-webpack-plugin.
* Webpack-dev-server.
* Jquery.
* React and ReactDom.
* TweenMax - GASP for animation.
* ESLint and Prettier.
## installing Bootstrap3
Explanation about installation in another branch => bootstrap3
## installing Bootstrap4
Explanation about installation in another branch => bootstrap4
## installing Isotope
$ npm install isotope-layout --D
Inside of 'webpack.config.js', you have to add:
resolve: {
alias: {
'masonry': 'masonry-layout',
'isotope': 'isotope-layout'
}
}In the index.js file you have to add:
const iso = new Isotope( '.grid', {
// options...
itemSelector: '.grid-item',
percentPosition: true,
masonry: {
// set to the element
columnWidth: '.grid-sizer',
}
});[1]: http://caniuse.com/
[2]: https://github.com/airbnb/javascript