This commit is contained in:
2020-05-25 20:59:33 +03:00
parent 2e4f90d8ff
commit 81bf9dc585
25 changed files with 614 additions and 132 deletions

View File

@@ -1,6 +1,6 @@
/* eslint-disable import/no-extraneous-dependencies */
const { ProgressPlugin } = require('webpack');
const { ProgressPlugin, EnvironmentPlugin } = require('webpack');
const convert = require('koa-connect');
const history = require('connect-history-api-fallback');
const HtmlWebpackPlugin = require('html-webpack-plugin');
@@ -71,6 +71,7 @@ module.exports = {
extensions: ['*', '.js', '.jsx', '.css', '.scss'],
},
plugins: [
new EnvironmentPlugin(['NODE_ENV', 'API_BASE_PATH']),
new ProgressPlugin(),
new HtmlWebpackPlugin({
template: commonPaths.templatePath,