mirror of https://github.com/lukechilds/ow.git
Sam Verschueren
7 years ago
committed by
Sindre Sorhus
3 changed files with 47 additions and 7 deletions
@ -0,0 +1,31 @@ |
|||
'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' |
|||
} |
|||
] |
|||
} |
|||
}; |
Loading…
Reference in new issue