1.0.0-rc.3 • Published 9 years ago
@ngstarter/webpack-extension v1.0.0-rc.3
webpack-extension
Extends https://github.com/antonybudianto/angular2-starter to have Webpack build
Getting started
- Copy - webpack.config.jsin this repo to the root of your starter.
- Install webpack-stream and the extension in your starter - npm install webpack-stream @ngstarter/webpack-extension --save
- Go to - tasks/build.jsin your starter, require the extension- // Get gulp config var config = require('../config')(); // Load extension with config require('@ngstarter/webpack-extension')(config);- and then change - build-systemjsto- build-webpack- gulp.task('build', function (done) { runSequence('test', 'build-webpack', 'build-assets', done); });
- Done! Try to build it! 
API
Use own webpack config
// Get gulp config
var config = require('../config')();
// Get webpack config
var webpackConfig = require('../webpack/webpack.config.js');
// Load extension with config and webpackConfig
require('@ngstarter/webpack-extension')(config, webpackConfig);License
MIT
1.0.0-rc.3
9 years ago
1.0.0-rc.2
9 years ago