pariatursit
Version:
ASN.1 encoding and decoding
49 lines (48 loc) • 1.17 kB
JavaScript
const path = require('path');
module.exports = {
entry: [
"./source/index.ts"
],
output: {
path: path.resolve(__dirname, "dist"),
filename: "asn1.js",
library: "asn1",
libraryTarget: "var"
},
resolve: {
extensions: [".webpack.js", ".web.js", ".ts", ".tsx", ".js"]
},
module: {
rules: [
{
test: /\.tsx?$/,
loader: 'ts-loader',
exclude: /node_modules/
}
]
},
optimization: {
minimize: false
},
target: "web"
};
// if (process.env.NODE_ENV === 'production') {
// module.exports.devtool = '#source-map'
// // http://vue-loader.vuejs.org/en/workflow/production.html
// module.exports.plugins = (module.exports.plugins || []).concat([
// new webpack.DefinePlugin({
// 'process.env': {
// NODE_ENV: '"production"'
// }
// }),
// new webpack.optimize.UglifyJsPlugin({
// sourceMap: true,
// compress: {
// warnings: false
// }
// }),
// new webpack.LoaderOptionsPlugin({
// minimize: true
// })
// ])
// }