This commit is contained in:
darenhsu
2022-07-17 13:16:16 +08:00
parent 84759556ff
commit befd344ab0
28070 changed files with 4008428 additions and 1 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()]
};