Skip to content

Instantly share code, notes, and snippets.

@jdb8
Created March 14, 2020 03:35
Show Gist options
  • Save jdb8/8049b6952898795be68dd6290e57bdfa to your computer and use it in GitHub Desktop.
Save jdb8/8049b6952898795be68dd6290e57bdfa to your computer and use it in GitHub Desktop.
import css from "./styles.css";
function fn() {
return css.foo;
}
console.log(fn);
function(e,r,t){"use strict";t.r(r);var n="_3TUThIrRsBDXr654gzsxg5";console.log((function(){return n}))}
.foo {color: red}
.bar {color: blue}
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