mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
22 lines
511 B
TypeScript
22 lines
511 B
TypeScript
import webpack = require('webpack');
|
|
import webpackNodeExternals = require('webpack-node-externals');
|
|
|
|
const a: webpack.Configuration = {
|
|
entry: 'test.js',
|
|
externals: [
|
|
webpackNodeExternals()
|
|
]
|
|
};
|
|
const b: webpack.Configuration = {
|
|
entry: 'test.js',
|
|
externals: webpackNodeExternals()
|
|
};
|
|
const c: webpack.Configuration = {
|
|
entry: 'test.js',
|
|
externals: [
|
|
webpackNodeExternals({
|
|
whitelist: ['jquery', 'webpack/hot/dev-server', /^lodash/]
|
|
})
|
|
]
|
|
};
|