Extends https://github.com/antonybudianto/angular2-starter to have Webpack build
-
Copy
webpack.config.js
in 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.js
in 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-systemjs
tobuild-webpack
gulp.task('build', function (done) { runSequence('test', 'build-webpack', 'build-assets', done); });
-
Done! Try to build it!
// 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);
MIT