Skip to content

maxp-edcast/webpack-boiler-backup

Repository files navigation


This provides a starting point for a webpack application.


It includes the following compilation setup:

  1. .coffee files are run through a coffeescript 2 processor. Since it can output JSX and ES6, it's then fed through Babel loaders to produce browser-suitable ES5.
  2. .slim templates can be loaded into html strings via require. To do so: template_html = require 'html-loader!./page.slim'. This uses the slim-loader I authored, and in my experience works well with Vue or another framework uses HTML without core syntax extensions.
  3. .sass paths can be passed to require and they will be automatically appended to the page

Getting started:

  • the entry point is entry.coffee. This can be changed by editing webpack.config.js
  • If changing the webpack.config.js file, the webpack.production.config.js should also get the same changes so that the deployment build works correctly. The files are identical to one another in this boiler.

To use:

  1. clone
  2. npm install
  3. npm run dev
  4. localhost:8080

to get ready for production

  1. npm run deploy
  2. push dist folder to a static host

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published