forked from aspnet/JavaScriptServices
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
26 lines (26 loc) · 769 Bytes
/
Copy pathwebpack.config.js
File metadata and controls
26 lines (26 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
module.exports = {
target: 'node',
externals: [
// These NPM modules are loaded dynamically at runtime, rather than being bundled into the Content/Node/*.js files
// So, at runtime, they have to either be in node_modules or be built-in Node modules (e.g., 'fs')
'aspnet-prerendering',
'aspnet-webpack'
],
resolve: {
extensions: [ '.ts' ]
},
module: {
loaders: [
{ test: /\.ts$/, loader: 'ts-loader' },
]
},
entry: {
'prerenderer': ['./TypeScript/Prerenderer'],
'webpack-dev-middleware': ['./TypeScript/WebpackDevMiddleware'],
},
output: {
libraryTarget: 'commonjs',
path: './Content/Node',
filename: '[name].js'
}
};