applying transfer to react app

This commit is contained in:
Tyler Koenig
2021-09-20 16:54:47 -04:00
parent 8819f31dd0
commit c612b7d702
37373 changed files with 3775588 additions and 2871 deletions
@@ -0,0 +1,6 @@
body {
color: red;
}
a {
color: blue;
}
@@ -0,0 +1,6 @@
body {
color: red;
}
p {
color: green;
}
@@ -0,0 +1 @@
a{color:#00f}body{color:red}p{color:green}
@@ -0,0 +1,2 @@
require('./a.css');
require('./b.css');
@@ -0,0 +1,20 @@
import ExtractTextPlugin from "extract-text-webpack-plugin";
import OptimizeCssAssetsPlugin from "../../../src/";
module.exports = {
entry: "./index",
module: {
rules: [
{
test: /\.css$/,
use: ExtractTextPlugin.extract({
fallback: { loader: "style-loader" },
use: {
loader: "css-loader"
}
})
}
]
},
plugins: [new ExtractTextPlugin("file.css"), new OptimizeCssAssetsPlugin()]
};