Skip to content

Commit

Permalink
fix(mp): shadow css
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Oct 19, 2019
1 parent c737da3 commit 82a32e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/webpack-uni-mp-loader/lib/plugin/generate-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ module.exports = function generateApp (compilation) {
process.env.NODE_ENV === 'production' &&
process.env.UNI_PLATFORM !== 'app-plus'
) {
const entryPage = Object.keys(process.UNI_ENTRY)[1]
const targetCssName = entryPage ? (entryPage + ext) : `common/main${ext}`
const targetCssName = `common/main${ext}`

if (!compilation.assets[targetCssName]) {
compilation.assets[targetCssName] = {
Expand Down

0 comments on commit 82a32e1

Please sign in to comment.