add ng2-webpack-config
This commit is contained in:
29
.ng2-config.js
Normal file
29
.ng2-config.js
Normal file
@@ -0,0 +1,29 @@
|
||||
'use strict';
|
||||
var pkg = require('./package.json');
|
||||
|
||||
module.exports = {
|
||||
// metadata
|
||||
title: pkg.description,
|
||||
baseUrl: '/',
|
||||
// root folder name
|
||||
src: 'demo',
|
||||
dist: 'demo-build',
|
||||
htmlIndexes: ['index.html'],
|
||||
// karma bundle src
|
||||
spec: './spec-bundle.js',
|
||||
// webpack entry
|
||||
entry: {
|
||||
polyfills: './demo/polyfills.ts',
|
||||
vendor: './demo/vendor.ts',
|
||||
main: './demo/index.ts'
|
||||
},
|
||||
commonChunks: {
|
||||
name: ['polyfills', 'vendor'].reverse()
|
||||
},
|
||||
// webpack alias
|
||||
alias: {},
|
||||
copy: [
|
||||
{from: 'demo/favicon.ico', to: 'favicon.ico'},
|
||||
{from: 'demo/assets', to: 'assets'}
|
||||
]
|
||||
};
|
||||
Reference in New Issue
Block a user