Skip to content

Instantly share code, notes, and snippets.

@teimurjan
Last active May 21, 2018 06:17
Show Gist options
  • Save teimurjan/ad0acb4e81a2d7a1a39e82f2e1b346b3 to your computer and use it in GitHub Desktop.
Save teimurjan/ad0acb4e81a2d7a1a39e82f2e1b346b3 to your computer and use it in GitHub Desktop.
blog-react-applications-optimization
const ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
module: {
rules: [
{
oneOf: [
{
test: /\.css$/,
loader: ExtractTextPlugin.extract({
/* your loader here */
})
}
]
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment