-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[Bug] Loss of CSS after build #2350
Comments
经过测试,我发现当在项目 解决方案在css-loader配置项上加上sideEffects:true {
test: /\.css$/,
sideEffects: true,
use: [MiniCssExtractPlugin.loader, 'css-loader', 'postcss-loader']
} |
nashaofu
added a commit
to nashaofu/vuepress
that referenced
this issue
Jun 30, 2020
18 tasks
larionov
pushed a commit
to larionov/vuepress
that referenced
this issue
Aug 19, 2020
…fects: false` (fix vuejs#2350) (vuejs#2471)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Steps to reproduce
1.
git clone https://github.com/nashaofu/grender.git && cd grender && git checkout 724cd858a305a4cc941a18d72fc29fbe5ddcdb32 && yarn
2. Compile the source code:
yarn build
3. run
yarn docs:build
4. run
npm i -g estatic
5. Start the http server locally:
estatic docs/.vuepress/dist -b grender
6. Open in browser
http://127.0.0.1:8080/grender/guide.html
7. The style of the rectangular area component in the figure is missing
https://github.com/nashaofu/grender/blob/724cd858a305a4cc941a18d72fc29fbe5ddcdb32/docs/.vuepress/components/Demo1.vue#L76-L79
What is expected?
This is the effect when running
vuepress dev docs
, This is working fine.What is actually happening?
The style in the component is lost after packaging
Other relevant information
npx vuepress info
in my VuePress project:The text was updated successfully, but these errors were encountered: