Files
DefinitelyTyped/types/webpack-dotenv-plugin/webpack-dotenv-plugin-tests.ts
T

20 lines
484 B
TypeScript

import * as webpack from 'webpack';
import * as DotenvPlugin from 'webpack-dotenv-plugin';
const config: webpack.Configuration = {
plugins: [
new DotenvPlugin(),
new DotenvPlugin({
sample: './.env.default',
path: './.env'
}),
new DotenvPlugin({
sample: './.env.default',
path: './.env',
silent: true,
encoding: 'utf-8',
allowEmptyValues: true
})
]
};