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

affect the other modules when use yarn workspace #171

Open
boswellgao opened this issue Jun 24, 2021 · 0 comments
Open

affect the other modules when use yarn workspace #171

boswellgao opened this issue Jun 24, 2021 · 0 comments

Comments

@boswellgao
Copy link

I have an npm package named webpack-holl that has the follow packages as dependencies:

    "html-webpack-plugin": "^4.5.2",
    "add-asset-html-webpack-plugin": "^2.1.3",
    "babel-eslint": "^7.2.3",
    "cache-loader": "^1.2.2",
    "case-sensitive-paths-webpack-plugin": "^2.1.2",
    "chalk": "^2.4.1",
    "eslint-loader": "^1.9.0",
    "postcss": "^8.2.6",
    "postcss-loader": "4.2.0",
    "postcss-css-variables": "0.17.0",
    "postcss-flexbugs-fixes": "^5.0.2",
    "autoprefixer": "^9.8.6",
    "antd-dayjs-webpack-plugin": "^1.0.0",
    "react-dev-utils": "^5.0.0",
    "style-loader": "^1.3.0",
    "thread-loader": "^1.2.0",
    "tslint-loader": "^3.5.3",
    "less": "^3.8.1",
    "less-loader": "^4.1.0",
    "node-sass": "^4.10.0",
    "sass-loader": "^7.1.0",
    "webpack": "4.26.0",
    "webpack-dev-server": "^3.1.4",
    "eslint-plugin-react": "^7.3.0",
    "fork-ts-checker-webpack-plugin": "^0.4.9",
    "friendly-errors-webpack-plugin": "^1.6.1",
    "mini-css-extract-plugin": "^0.4.0",
    "uglifyjs-webpack-plugin": "^1.3.0",
    "webpack-bundle-analyzer": "4.x.x",
    "webpackbar": "^2.6.1",
    "clean-webpack-plugin": "^1.0.0",
    "file-loader": "^2.0.0",
    "css-loader": "^5.2.6",
    "optimize-css-assets-webpack-plugin": "^5.0.0"

and this package source code like this https://github.com/boswellgao/webpack-holl

and I have a yarn workspaces project. the project like this:

https://github.com/boswellgao/demo-yarn-workspace

and I installed the package(webpack-holl) as devDepencies in the root of that project

after I have installed , I found that many of the dependencies of this package(webpack-holl) not in the root node_modules.

finally I found that when I removed the optimize-css-assets-webpack-plugin, all the works go well.

and I use

[email protected]
[email protected]
[email protected]

so I want to know if this is the problem of optimize-css-assets-webpack-plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant