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

20 lines
485 B
TypeScript

import * as webpack from 'webpack';
import DotenvPlugin = require('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
})
]
};