diff --git a/cli/src/lib/plugin/webpack.config.js b/cli/src/lib/plugin/webpack.config.js index 2bba8b4ee..adcf0b70f 100644 --- a/cli/src/lib/plugin/webpack.config.js +++ b/cli/src/lib/plugin/webpack.config.js @@ -4,7 +4,9 @@ const HtmlWebpackPlugin = require('html-webpack-plugin') const MiniCssExtractPlugin = require('mini-css-extract-plugin') const getCSSModuleLocalIdent = require('react-dev-utils/getCSSModuleLocalIdent') const getPublicUrlOrPath = require('react-dev-utils/getPublicUrlOrPath') +const webpack = require('webpack') const makeBabelConfig = require('../../../config/makeBabelConfig') +const getShellEnv = require('../shell/env') const babelWebpackConfig = { babelrc: false, @@ -26,6 +28,8 @@ module.exports = ({ env: webpackEnv, paths }) => { process.env.PUBLIC_URL ) + const shellEnv = getShellEnv({}) + // "style" loader turns CSS into JS modules that inject