https://github.com/anyulled/package-dependency
a package dependency poc
https://github.com/anyulled/package-dependency
babel react react-dom webpack webpack-dev-server webpack3
Last synced: 2 months ago
JSON representation
a package dependency poc
- Host: GitHub
- URL: https://github.com/anyulled/package-dependency
- Owner: anyulled
- Created: 2017-08-02T16:02:40.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2025-12-31T17:30:03.000Z (6 months ago)
- Last Synced: 2026-01-05T03:13:41.690Z (6 months ago)
- Topics: babel, react, react-dom, webpack, webpack-dev-server, webpack3
- Language: JavaScript
- Size: 1.9 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 23
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# DefinePlugin POC
this is a sample of defining global constants and passing them through every dependent package.
## Instructions
first, create a symbolic link for your dependent app, install the respective dependencies and build your app
```
cd dependentApp
npm install
npm run build
npm link
```
This will create a link to `dependentapp` package in your global user npm package folder.
Next, go to your main app and refer to the link you just created above.
```
cdd mainApp
npm install
npm link dependentApp
```
Finally, just run your app.
`npm start`
Variables defined at `mainApp` should be visible on `dependentApp` also.