mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
22 lines
517 B
TypeScript
22 lines
517 B
TypeScript
import * as webpack from 'webpack';
|
|
import DotenvWebpackPlugin = require('dotenv-webpack');
|
|
|
|
new DotenvWebpackPlugin(); // $ExpectType DotenvWebpackPlugin
|
|
|
|
const options: DotenvWebpackPlugin.Options = {
|
|
path: './some.other.env',
|
|
safe: true,
|
|
systemvars: true,
|
|
silent: true
|
|
};
|
|
|
|
const config: webpack.Configuration = {
|
|
plugins: [
|
|
new DotenvWebpackPlugin(),
|
|
new DotenvWebpackPlugin({
|
|
path: './some.other.env',
|
|
}),
|
|
new DotenvWebpackPlugin(options),
|
|
]
|
|
};
|