mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 07:50:12 +01:00
chore(build): update angular to 2.0
This commit is contained in:
parent
04a57b7b98
commit
714ffe741a
3 changed files with 29 additions and 14 deletions
|
|
@ -10,6 +10,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|||
const ForkCheckerPlugin = require('awesome-typescript-loader').ForkCheckerPlugin;
|
||||
const HtmlElementsPlugin = require('./html-elements-plugin');
|
||||
const AssetsPlugin = require('assets-webpack-plugin');
|
||||
const ContextReplacementPlugin = require('webpack/lib/ContextReplacementPlugin');
|
||||
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||
|
||||
/*
|
||||
|
|
@ -250,6 +251,20 @@ module.exports = function (options) {
|
|||
name: ['polyfills', 'vendor'].reverse()
|
||||
}),
|
||||
|
||||
|
||||
/**
|
||||
* Plugin: ContextReplacementPlugin
|
||||
* Description: Provides context to Angular's use of System.import
|
||||
*
|
||||
* See: https://webpack.github.io/docs/list-of-plugins.html#contextreplacementplugin
|
||||
* See: https://github.com/angular/angular/issues/11580
|
||||
*/
|
||||
new ContextReplacementPlugin(
|
||||
// The (\\|\/) piece accounts for path separators in *nix and Windows
|
||||
/angular(\\|\/)core(\\|\/)(esm(\\|\/)src|src)(\\|\/)linker/,
|
||||
helpers.root('src') // location of your src
|
||||
),
|
||||
|
||||
/*
|
||||
* Plugin: CopyWebpackPlugin
|
||||
* Description: Copy files and directories in webpack.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue