DefinitelyTyped/types/webpack-dotenv-plugin/webpack-dotenv-plugin-tests.ts
2017-08-08 13:52:06 -07:00

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
})
]
};