Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add watch option for cache validation #13

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions examples/watch/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"installedESLint": true,
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {}
};
2 changes: 2 additions & 0 deletions examples/watch/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
20 changes: 20 additions & 0 deletions examples/watch/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# AutoDllPlugin Watch Example

### How to install

1. `git clone [email protected]:asfktz/autodll-webpack-plugin.git`
2. `cd examples/watch`
3. `npm install`
4. `npm run`
5. `open http://localhost:8080`


### How to use

1. Close devServer using ctrl + C
2. Rerun the devServer using `npm start` to verify that cache is working
3. Modify something in node_modules or package.json
4. Close devServer using ctrl + C
5. Rerun devServer using `npm start`
6. You'll see that DLL is recompiling, cache is invalidated, and your changes should be included in the DLL bundle.
7. Repeat
Loading