Add webpack and script build:resources to build into resources/html and generate manifest!

This commit is contained in:
J Francisco Rader committed 2020-08-23 19:31:09 -03:00
1 parent 515ab67b3c
commit 1838de04ba
8 files changed
+687 -34

No files matched your search

+25 -1
View File
@@ -3,6 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@babel/polyfill": "^7.4.4",
"@material-ui/core": "^4.11.0",
"@material-ui/icons": "^4.9.1",
"@testing-library/jest-dom": "^4.2.4",
@@ -11,7 +12,6 @@
"husky": "^4.2.5",
"i18next": "^19.7.0",
"lint-staged": "^10.2.11",
"lodash": "^4.17.20",
"prettier": "^2.0.5",
"react": "^16.13.1",
"react-dom": "^16.13.1",
@@ -21,9 +21,33 @@
"react-scripts": "3.4.3",
"recoil": "^0.0.10"
},
"devDependencies": {
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.5",
"@babel/plugin-proposal-class-properties": "^7.4.4",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/preset-env": "^7.4.5",
"@babel/preset-react": "^7.0.0",
"babel-eslint": "^10.0.1",
"babel-plugin-styled-components": "^1.10.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"babel-loader": "^8.1.0",
"cross-env": "^7.0.2",
"css-loader": "^2.1.1",
"html-webpack-plugin": "^4.3.0",
"ifdef-loader": "^2.1.5",
"webpack-cli": "^3.3.12",
"style-loader": "^0.23.1",
"svg-url-loader": "^2.3.2",
"terser-webpack-plugin": "^1.3.0",
"url-loader": "^1.1.2",
"file-loader": "^3.0.1",
"html-loader": "^0.5.5"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"build:resources": "cross-env NODE_ENV=production webpack --config webpack/webpack.resources.js --color -p --progress --hide-modules --display-optimization-bailout",
"test": "react-scripts test",
"eject": "react-scripts eject"
},