Created
March 14, 2020 03:35
-
-
Save jdb8/8049b6952898795be68dd6290e57bdfa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import css from "./styles.css"; | |
function fn() { | |
return css.foo; | |
} | |
console.log(fn); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function(e,r,t){"use strict";t.r(r);var n="_3TUThIrRsBDXr654gzsxg5";console.log((function(){return n}))} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.foo {color: red} | |
.bar {color: blue} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const MiniCSSExtractPlugin = require("mini-css-extract-plugin"); | |
module.exports = { | |
devtool: false, | |
module: { | |
rules: [ | |
{ | |
test: /\.css$/, | |
use: [ | |
{ | |
loader: MiniCSSExtractPlugin.loader, | |
options: { | |
esModule: true | |
} | |
}, | |
{ | |
loader: "css-loader", | |
options: { | |
modules: true, | |
esModule: true | |
} | |
} | |
] | |
} | |
] | |
}, | |
plugins: [new MiniCSSExtractPlugin({})] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment