0.2.0 - Mid migration

This commit is contained in:
Daniel Mason 2022-04-25 14:47:15 +12:00
parent 139e6a915e
commit 7e38fdbd7d
42393 changed files with 5358157 additions and 62 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()]
};