simple webpack configuration for building web pages
You could use it as a base to build your own web app.
- Webpack 4.x
- ES6+ syntax support with babel 7.x
- Support HMR
- Auto Open a new browser tab when Webpack loads, and reload the page when you modified the code
- Check if your Node.js version is >= 6.
- Clone the repo
$ git clone https://github.com/Quernest/webpack.git <yourAppName>
$ cd <yourAppName>
- Delete the old
.git
history and initialize new history.
$ rm -rf .git
$ git init
- install the dependencies
$ yarn install
- launch the app
$ yarn start
Now you should see a new browser window/tab opening and a title in http://localhost:3000.
Last, You need update package.json
and modify fields like name
, version
, description
, keywords
, author
, license
and so on to fit your project.
From there, you start to develop your own code in the src
directory. When you finish coding, use yarn run build
to build the static files.
MIT