mirror of
https://github.com/cupcakearmy/canihazusername.git
synced 2025-09-05 23:00:40 +00:00
config files
This commit is contained in:
34
src/webpack.config.js
Normal file
34
src/webpack.config.js
Normal file
@@ -0,0 +1,34 @@
|
||||
const webpack = require('webpack')
|
||||
const path = require('path')
|
||||
const DtsBundleWebpack = require('dts-bundle-webpack')
|
||||
|
||||
module.exports = {
|
||||
context: `${__dirname}`,
|
||||
target: 'node',
|
||||
entry: [
|
||||
`./index.ts`,
|
||||
],
|
||||
output: {
|
||||
path: `${__dirname}/../lib`,
|
||||
filename: 'index.js',
|
||||
libraryTarget: 'umd',
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
||||
},
|
||||
optimization: {
|
||||
minimize: true,
|
||||
},
|
||||
module: {
|
||||
rules: [{
|
||||
test: /\.tsx?$/,
|
||||
loader: 'awesome-typescript-loader'
|
||||
}, ],
|
||||
},
|
||||
plugins: [
|
||||
new DtsBundleWebpack({
|
||||
name: 'index',
|
||||
main: `./lib/index.d.ts`
|
||||
})
|
||||
],
|
||||
}
|
Reference in New Issue
Block a user