Archived
1
0

First commit

This commit is contained in:
Sean Edmunds
2021-12-13 17:00:40 -06:00
commit 0584430b5c
36617 changed files with 4676695 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
body {
color: red;
}
a {
color: blue;
}

View File

@@ -0,0 +1,6 @@
body {
color: red;
}
p {
color: green;
}

View File

@@ -0,0 +1 @@
a{color:#00f}body{color:red}p{color:green}

View File

@@ -0,0 +1,2 @@
require('./a.css');
require('./b.css');

View File

@@ -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()]
};