Use import/export instead of references. Use webpack instead of tsc.
This commit is contained in:
32
config-serializer/webpack.config.js
Normal file
32
config-serializer/webpack.config.js
Normal file
@@ -0,0 +1,32 @@
|
||||
// var webpack = require("webpack");
|
||||
|
||||
module.exports = {
|
||||
entry: {
|
||||
main: './test-serializer.ts'
|
||||
},
|
||||
target: 'node',
|
||||
output: {
|
||||
filename: "test-serializer.js"
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['', '.webpack.js', '.web.js', '.ts', '.js'],
|
||||
alias: {
|
||||
|
||||
},
|
||||
modulesDirectories: [
|
||||
'../node_modules'
|
||||
]
|
||||
},
|
||||
module: {
|
||||
loaders: [
|
||||
{ test: /\.ts$/, loader: 'ts-loader', exclude: /node_modules/ }
|
||||
]
|
||||
},
|
||||
plugins: [
|
||||
// new webpack.optimize.UglifyJsPlugin({ minimize: true })
|
||||
],
|
||||
node: {
|
||||
fs: "empty"
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user