draft: refactor project so it sits on top of a standalone app

This commit is contained in:
2020-05-11 15:34:47 +02:00
parent a9ee5acc1c
commit f97e8455fc
13068 changed files with 1735502 additions and 866 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()]
};