Webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable of transforming, bundling, or packaging just about any resource or asset.
Author: To code | Youtube guide in Russian
# Download repository:
git clone https://github.com/vedees/webpack-template webpack-template
# Go to the app:
cd webpack-template
# Install dependencies:
npm install
# Server with hot reload at http://localhost:8081/
npm run dev
# Output will be at dist/ folder
npm run build
src/index.html
- main app HTMLsrc/scss
- put custom app SCSS styles here. Don't forget to import them inmain.js
src/css
- the same as above but CSS here. Don't forget to import them inmain.js
src/img
- put images here. Don't forget to use correct path:assets/img/some.jpg
src/js
- put custom app scripts heresrc/index.js
- main app file where you include/import all required libs and init appsrc/components
- folder with custom.vue
componentssrc/store
- app store for vuestatic/
- folder with extra static assets that will be copied into output folder
Copyright (c) 2018-present, Evgenii Vedegis