Webpack开发服务器错误创建dist文件夹

时间:2020-06-10 06:15:16

标签: javascript reactjs webpack react-redux webpack-dev-server

我想创建一个静态文件夹“ dist” 但是我在命令上遇到了问题,其他人也遇到了同样的问题吗?

Package.json

RESGATE AUTOMATICO

},

Console image error

我的webpack配置为

112.400,00

.babelrc是

rem Find out the maximum value which is usually the total sum, but
rem could be also a different value like sum of RESGATE AUTOMATICO.
set "MaximumValue=%#TotalSum%"
setlocal EnableDelayedExpansion
for /F "tokens=2 delims==" %%I in ('set #') do if %%I GTR !MaximumValue! set "MaximumValue=%%I"
endlocal & set "MaximumValue=%MaximumValue%"

rem Format value of maximum value.
call :FormatNumber %MaximumValue%

rem For a later aligned output find out the length of the maximum value.

index.js

"scripts": {
"start": "webpack-dev-server --open",
"dev": "webpack --mode development --watch ./frontend/src/index.js --output ./frontend/static/frontend/main.js",
"build": "webpack --mode production ./frontend/src/index.js --output ./frontend/static/frontend/main.js"

注意:我可以使用npm run dev(因为这可以直接使用main)

1 个答案:

答案 0 :(得分:0)

您的图片显示您使用response.sendError(...)时,如果要创建dist文件夹,则应尝试npm run start