Open hamza-hajji opened 6 years ago
I install the necessary libraries and everything works ok, but it's not working as expected.
My config-overrides.js
config-overrides.js
const rewireCreateReactLibrary = require('react-app-rewire-react-library'); module.exports = function override(config, env) { config = rewireCreateReactLibrary(config, env); return config; };
My package.json
package.json
{ "name": "todo-app", "module": "./src/index.js", "main": "./build/main.js", "version": "0.1.0", "private": true, "dependencies": { "bootstrap": "^4.0.0-beta.2", "font-awesome": "^4.7.0", "lodash": "^4.17.4", "marked": "^0.3.7", "material-design-icons": "^3.0.1", "react": "^16.2.0", "react-dom": "^16.2.0", "react-redux": "^5.0.6", "react-scripts": "1.0.17", "redux": "^3.7.2", "slate": "^0.31.7", "slate-html-serializer": "^0.4.15", "slate-react": "^0.10.22", "uuid": "^3.1.0" }, "scripts": { "start": "react-scripts start", "build": "react-app-rewired build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject", "deploy": "npm run build && surge -p=build -d todolist-redux.surge.sh", "build-library": "react-app-rewired build --library" }, "devDependencies": { "react-app-rewire-react-library": "^0.1.1", "react-app-rewired": "^1.4.0" } }
When I run yarn run build-library, this is the folder content I get
yarn run build-library
Which are exactly the files I get when I run yarn run build.
yarn run build.
@hamza-hajji strange, do you get another folder called dist?
dist
I install the necessary libraries and everything works ok, but it's not working as expected.
My
config-overrides.js
My
package.json
When I run
yarn run build-library
, this is the folder content I getWhich are exactly the files I get when I run
yarn run build.