chore(package): update angular to 2.1.0, webpack to 2.1.0-beta.25, other dependencies accordingly

This commit is contained in:
Dmitry Nehaychik 2016-10-21 12:57:02 +03:00
parent d56537af9f
commit 0b2ceded29
7 changed files with 165 additions and 155 deletions

View file

@ -1,4 +1,5 @@
const helpers = require('./helpers');
const path = require('path');
const webpackMerge = require('webpack-merge'); // used to merge webpack configs
const commonConfig = require('./webpack.common.js'); // the settings that are common to prod and dev
@ -7,6 +8,7 @@ const commonConfig = require('./webpack.common.js'); // the settings that are co
*/
const DefinePlugin = require('webpack/lib/DefinePlugin');
const NamedModulesPlugin = require('webpack/lib/NamedModulesPlugin');
const LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin');
/**
* Webpack Constants
@ -27,23 +29,9 @@ const METADATA = webpackMerge(commonConfig({env: ENV}).metadata, {
*
* See: http://webpack.github.io/docs/configuration.html#cli
*/
module.exports = function(options) {
module.exports = function (options) {
return webpackMerge(commonConfig({env: ENV}), {
/**
* Merged metadata from webpack.common.js for index.html
*
* See: (custom attribute)
*/
metadata: METADATA,
/**
* Switch loaders to debug mode.
*
* See: http://webpack.github.io/docs/configuration.html#debug
*/
debug: true,
/**
* Developer tool to enhance debugging
*
@ -123,19 +111,33 @@ module.exports = function(options) {
*/
new NamedModulesPlugin(),
],
/**
* Plugin LoaderOptionsPlugin (experimental)
*
* See: https://gist.github.com/sokra/27b24881210b56bbaff7
*/
new LoaderOptionsPlugin({
debug: true,
options: {
context: helpers.root('src'),
output: {
path: helpers.root('dist')
},
/**
* Static analysis linter for TypeScript advanced options configuration
* Description: An extensible linter for the TypeScript language.
*
* See: https://github.com/wbuchwalter/tslint-loader
*/
tslint: {
emitErrors: false,
failOnHint: false,
resourcePath: 'src'
},
/**
* Static analysis linter for TypeScript advanced options configuration
* Description: An extensible linter for the TypeScript language.
*
* See: https://github.com/wbuchwalter/tslint-loader
*/
tslint: {
emitErrors: false,
failOnHint: false,
resourcePath: 'src'
}
}
})
],
/**
* Webpack Development Server configuration
@ -165,7 +167,7 @@ module.exports = function(options) {
* See: https://webpack.github.io/docs/configuration.html#node
*/
node: {
global: 'window',
global: true,
crypto: 'empty',
process: true,
module: false,