webpack-extension
June 17, 2016 ยท View on GitHub
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-systemjstobuild-webpackgulp.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