https://github.com/nicksp/example-webpack-4
Just playing around with new Webpack 4 features
https://github.com/nicksp/example-webpack-4
es2015 javascript webpack4
Last synced: 23 days ago
JSON representation
Just playing around with new Webpack 4 features
- Host: GitHub
- URL: https://github.com/nicksp/example-webpack-4
- Owner: nicksp
- Created: 2018-02-25T22:09:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-25T23:44:01.000Z (over 8 years ago)
- Last Synced: 2025-01-07T20:22:14.972Z (over 1 year ago)
- Topics: es2015, javascript, webpack4
- Language: JavaScript
- Size: 43 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# example-webpack-4
Just an example showing new awesome stuff [Webpack 4](https://github.com/webpack/webpack/releases/tag/v4.0.0) brings to the table.
## Major Changes
1. Zero configuration: Webpack 4 doesn’t need a configuration file anymore.
It will look in `./src/index.js` as the default entry point. Moreover, it will expose the bundle in `./dist/main.js` as the default output file.
1. production and development modes.
**Production mode** enables all sorts of optimizations out of the box: minification, scope hoisting, tree-shaking and more.
**Development mode** is optimized for speed and does nothing more than providing an un-minified bundle.
1. Transpiling ECMAScript 2015 with Babel.
This isn't a feature per se, but just wanted to mention that loaders configuration still has to be done using `webpack.config.js` file.
## Getting Started
- `yarn`
- `yarn start` // development build
- `yarn build` // to build once for production