File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 55 "type" : " module" ,
66 "private" : true ,
77 "scripts" : {
8- "build" : " npm run build:client && npm run build:server && npm run build:assets" ,
8+ "build" : " mkdir -p ${DIST_DIR:-dist} && npm run build:client && npm run build:server && npm run build:assets" ,
99 "build:watch" : " webpack --watch" ,
10- "build:client" : " webpack --config webpack.config.cjs" ,
11- "build:server" : " esbuild src/render.js --loader:.js=jsx --loader:.pcss=empty --bundle --minify --format=esm --outfile=dist/render.js" ,
12- "build:assets" : " rm -rf dist/static dist/index.html && cp -r src/index.html src/static dist/"
10+ "build:client" : " webpack --config webpack.config.cjs --output-path ${DIST_DIR:-dist} " ,
11+ "build:server" : " esbuild src/render.js --loader:.js=jsx --loader:.pcss=empty --bundle --minify --format=esm --outfile=${DIST_DIR:- dist} /render.js" ,
12+ "build:assets" : " rm -rf ${DIST_DIR:- dist} /static ${DIST_DIR:- dist} /index.html && cp -r src/index.html src/static ${DIST_DIR:- dist} /"
1313 },
1414 "author" : " Applura, Inc" ,
1515 "license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments