Skip to content

lapwinglabs/www-bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

www-bundle

Deprecated in favor of webpack-www-bundle

Opinionated asset pipeline for the koa front-end servers

Installation

npm install www-bundle

Usage

var bundle = require('www-bundle')
var join = require('path').join

// middleware
koa.use(bundle({ root: __dirname }))

// all the assets your frontend should listen to
bundle('react') // supports "browser" field in package.json
bundle('home.js')
bundle('home.css')

See the react example for the complete server implementation

Stack

This allows you to support both importing assets using CSS and requiring assets using JS.

License

MIT

About

Opinionated asset pipeline for the koa front-end servers

Resources

Stars

Watchers

Forks

Packages

No packages published