Skip to content

ColbyWTaylor/webpack-ready

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using Webpack for the first time

  1. Clone this repository as a template
$ git clone git@github.com:alesanchezr/webpack-ready.git

Run npm install to download all the dependency libraries

$ npm install

Change the remote to you repository

$ git remote set-url origin <your repository url here>

You are ready to go!

How to continue?

The application flow starts at app.js, you have to import any other files or assets into app in order for webpack to include them in the bundle.

For example, inside app.js you can do:

    //This will include file.js into your bundle.
    import 'js/file2';
    
    //this will include the styles at index.scss to your bundle.
    require('../styles/index.scss');

All your code must go inside the src folder, and webpack will automaticly bundle them and export them into the public folder.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.3%
  • HTML 16.7%