Skip to content

Instantly share code, notes, and snippets.

@bjankord
Created November 5, 2017 02:42
Show Gist options
  • Select an option

  • Save bjankord/0982e7d28c55764ebcba7123aaf8a06e to your computer and use it in GitHub Desktop.

Select an option

Save bjankord/0982e7d28c55764ebcba7123aaf8a06e to your computer and use it in GitHub Desktop.
Disabling css modules for global CSS via https://twitter.com/kylewelch/status/923586056016093184
import 'rc-tabs/assets/index.css?global';
use: [({ resourceQuery }) => ({
loader: 'css-loader',
options: {
modules: resourceQuery.indexOf('global') === -1,
sourceMap: true,
importLoaders: 1,
localIdentName: '[name]__[local]___[hash:base64:5]',
},
}),
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment