Skip to content

Commit

Permalink
update msoffice webpack plugins to fix CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
fry committed Sep 17, 2020
1 parent e26af96 commit 7e15165
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 71 deletions.
11 changes: 10 additions & 1 deletion msoffice/config/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,16 @@ const rules = [{
},
{
test: /\.less$/,
use: ['style-loader', 'css-loader', 'less-loader']
use: [
{ loader: 'style-loader' },
{
loader: 'css-loader',
options: {
modules: false
},
},
{ loader: 'less-loader' }
]
},
{
test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)$/,
Expand Down
130 changes: 64 additions & 66 deletions msoffice/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions msoffice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,25 +35,25 @@
"@types/webpack-env": "^1.15.2",
"autoprefixer": "6.7.7",
"copy-webpack-plugin": "^6.0.3",
"css-loader": "^4.2.1",
"css-loader": "^4.3.0",
"file-loader": "0.10.1",
"html-webpack-plugin": "^3.2.0",
"less": "^3.12.2",
"less-loader": "^4.0.5",
"mini-css-extract-plugin": "^0.5.0",
"minimist": ">=0.2.1",
"office-toolbox": "^0.1.1",
"postcss-loader": "1.3.3",
"react-hot-loader": "^3.1.3",
"rimraf": "2.6.1",
"style-loader": "^0.23.1",
"style-loader": "^1.2.1",
"ts-loader": "^5.4.5",
"tslint": "^5.20.1",
"typescript": "^2.7.2",
"webpack": "^4.44.1",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.0",
"webpack-merge": "^4.2.2",
"workerize-loader": "^1.3.0",
"minimist": ">=0.2.1"
"workerize-loader": "^1.3.0"
}
}

0 comments on commit 7e15165

Please sign in to comment.