mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
added envs
This commit is contained in:
parent
bfc779745a
commit
d8aee64082
6 changed files with 652 additions and 383 deletions
|
@ -1,15 +1,15 @@
|
|||
// import webpack from 'webpack';
|
||||
const webpack = require('webpack');
|
||||
const HtmlWebPackPlugin = require('html-webpack-plugin');
|
||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
|
||||
const { join } = require('path');
|
||||
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
|
||||
const Dotenv = require('dotenv-webpack');
|
||||
|
||||
const htmlPlugin = new HtmlWebPackPlugin({
|
||||
template: './src/index.html',
|
||||
filename: './index.html',
|
||||
title: 'VLT',
|
||||
title: 'VAULT',
|
||||
hash: false,
|
||||
// favicon: 'src/sprites/favicon.png',
|
||||
});
|
||||
|
@ -38,6 +38,7 @@ module.exports = () => {
|
|||
htmlPlugin,
|
||||
miniCssExractPlugin,
|
||||
new webpack.HashedModuleIdsPlugin(),
|
||||
new Dotenv(),
|
||||
];
|
||||
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue