Skip to content

Commit

Permalink
fix(v2): remove css order warning if css imports are not sorted (#2042)
Browse files Browse the repository at this point in the history
  • Loading branch information
endiliey authored and yangshun committed Nov 24, 2019
1 parent 0b463a0 commit 3abd281
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/docusaurus/src/webpack/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ export function createBaseConfig(
plugins: [
new MiniCssExtractPlugin({
filename: isProd ? '[name].[contenthash:8].css' : '[name].css',
// remove css order warnings if css imports are not sorted alphabetically
// see https://github.com/webpack-contrib/mini-css-extract-plugin/pull/422 for more reasoning
ignoreOrder: true,
}),
],
};
Expand Down

0 comments on commit 3abd281

Please sign in to comment.