This commit is contained in:
Eugene Pankov
2021-07-25 17:44:43 +02:00
parent 7f94d85d67
commit 23e9e984e3
9 changed files with 26 additions and 55 deletions

View File

@@ -1,3 +1,4 @@
require('dotenv').config({path: '../.env'})
const webpack = require('webpack')
const MiniCssExtractPlugin = require("mini-css-extract-plugin")
@@ -55,5 +56,8 @@ module.exports = {
},
plugins: [
new MiniCssExtractPlugin(),
new webpack.DefinePlugin({
BACKEND_URL: JSON.stringify(process.env.BACKEND_URL || ''),
}),
],
}