-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(test): Switch to fork-ts-checker-webpack-plugin. Update libs
- Loading branch information
1 parent
03d9234
commit bd6046a
Showing
4 changed files
with
624 additions
and
1,758 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,27 @@ | ||
var pkg = require('./package.json'); | ||
var banner = pkg.description + '\n' + | ||
'@version v' + pkg.version + '\n' + | ||
'@link ' + pkg.homepage + '\n' + | ||
'@license MIT License, http://www.opensource.org/licenses/MIT'; | ||
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin'); | ||
|
||
var webpack = require('webpack'); | ||
module.exports = { | ||
entry: { | ||
"angular-ui-router": "./src/index.ts", | ||
"angular-ui-router.min": "./src/index.ts", | ||
"stateEvents": "./src/legacy/stateEvents.ts", | ||
"stateEvents.min": "./src/legacy/stateEvents.ts", | ||
'angular-ui-router': './src/index.ts', | ||
'stateEvents': './src/legacy/stateEvents.ts', | ||
}, | ||
|
||
output: { | ||
path: __dirname + "/release", | ||
filename: "[name].js", | ||
libraryTarget: "umd", | ||
library: "@uirouter/angularjs", | ||
umdNamedDefine: true | ||
}, | ||
|
||
devtool: 'source-map', | ||
|
||
resolve: { | ||
modulesDirectories: ['node_modules'], | ||
extensions: ['', '.js', '.ts'] | ||
modules: ['node_modules'], | ||
extensions: ['.js', '.jsx', '.ts', '.tsx'] | ||
}, | ||
|
||
plugins: [ | ||
new webpack.optimize.UglifyJsPlugin({ | ||
include: /\.min\.js$/, minimize: true | ||
}), | ||
new webpack.BannerPlugin(banner) | ||
], | ||
|
||
module: { | ||
loaders: [ | ||
{ test: /\.tsx?$/, loader: "awesome-typescript-loader?noEmit=true" } | ||
rules: [ | ||
{ test: /\.tsx?$/, loader: 'ts-loader', options: { transpileOnly: true } } | ||
] | ||
}, | ||
|
||
ts: { | ||
compilerOptions: { | ||
declaration: false | ||
} | ||
}, | ||
|
||
externals: { | ||
"angular": { root: 'angular', amd: 'angular', commonjs2: 'angular', commonjs: 'angular' } | ||
} | ||
stats: false, | ||
|
||
plugins: [ | ||
new ForkTsCheckerWebpackPlugin(), | ||
], | ||
|
||
externals: [ 'angular' ] | ||
}; |
Oops, something went wrong.