mirror of https://github.com/lukechilds/ow.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
577 B
32 lines
577 B
7 years ago
|
'use strict';
|
||
|
const webpack = require('webpack');
|
||
|
const license = require('license-webpack-plugin');
|
||
|
|
||
|
module.exports = {
|
||
|
entry: './source/index.ts',
|
||
|
target: 'node',
|
||
|
devtool: 'source-map',
|
||
|
output: {
|
||
|
filename: 'dist/index.js',
|
||
|
libraryTarget: 'commonjs2'
|
||
|
},
|
||
|
resolve: {
|
||
|
extensions: ['.ts', '.js']
|
||
|
},
|
||
|
plugins: [
|
||
|
new webpack.optimize.ModuleConcatenationPlugin(),
|
||
|
new license.LicenseWebpackPlugin({
|
||
|
pattern: /.*/,
|
||
|
outputFilename: 'dist/licenses.txt'
|
||
|
})
|
||
|
],
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.ts$/,
|
||
|
loader: 'awesome-typescript-loader'
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
};
|