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

fix(demo): Fixes webpack serve/demo to 5.x compatible #666

Closed
wants to merge 1 commit into from
Closed
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
7 changes: 7 additions & 0 deletions docs/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ const baseConfig = {
extensions: ['.js', '.css'],
modules: ['node_modules'],
},
devServer: {
static: {
directory: __dirname,
},
open: true,
port: 3000,
},
module: {
rules: [
{
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"build:docs": "yarn build && cross-env NODE_ENV=production webpack --config docs/webpack.config.js --bail --mode=production",
"commit": "git-cz",
"coveralls": "yarn test && c8 report --reporter=text-lcov | coveralls",
"demo": "rimraf ./docs/bundle.js && webpack-serve --content ./docs --port 3000 --open --config docs/webpack.config.js",
"demo": "rimraf ./docs/bundle.js && webpack serve --config docs/webpack.config.js",
"prepublishOnly": "yarn build",
"lint": "eslint --fix src docs webpack.config.js && stylelint --fix \"src/**/*.css\"",
"lint:nofix": "eslint src webpack.config.js && stylelint \"src/**/*.css\"",
Expand Down Expand Up @@ -109,11 +109,11 @@
"style-loader": "^0.20.1",
"stylelint": "^9.0.0",
"stylelint-config-standard": "^18.0.0",
"url-loader": "^1.0.1",
"url-loader": "^4.1.1",
"webpack": "^5.75.0",
"webpack-bundle-analyzer": "^4.7.0",
"webpack-cli": "^5.0.1",
"webpack-serve": "^4.0.0",
"webpack-dev-server": "^5.0.3",
"why-did-you-update": "^0.1.1"
},
"peerDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions types/react-dropdown-tree-select.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ declare module 'react-dropdown-tree-select' {
* search bar, the tree will not deselect nodes.
*/
disablePoppingOnBackspace?: boolean
/** `tabIndex=0` attribute indicates that its element can be focused, and where it participates in sequential keyboard navigation.
*/
tabIndex?: number
}

export interface DropdownTreeSelectState {
Expand Down
Loading
Loading