Extract CSS to a file.
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
"devDependencies": {
|
||||
"autoprefixer": "^9.4.9",
|
||||
"css-loader": "^2.1.0",
|
||||
"mini-css-extract-plugin": "^0.5.0",
|
||||
"node-sass": "^4.11.0",
|
||||
"postcss": "^7.0.14",
|
||||
"postcss-loader": "^3.0.0",
|
||||
|
||||
@@ -33,7 +33,7 @@ body.closed {
|
||||
height: 100%;
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
background-image: url(stop.svg);
|
||||
background-image: url(/stop.svg);
|
||||
background-position: 50% 50%;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,15 +1,4 @@
|
||||
// Styles for the "Open" page
|
||||
@keyframes starrotation {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
25% {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
body.open {
|
||||
background-color: #a3d165;
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="creator" value="Genetic Lifeform and Beer Operating System - GLaBOS">
|
||||
<title>Nee... • IsDeFooBarOpen.nl</title>
|
||||
<title>Nee… • IsDeFooBarOpen.nl</title>
|
||||
<script src="generated/bundle.js"></script>
|
||||
<link rel="stylesheet" href="generated/main.css">
|
||||
</head>
|
||||
<body class="closed">
|
||||
<div id="stop-overlay">
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="creator" value="Genetic Lifeform and Beer Operating System - GLaBOS">
|
||||
<title>JA! • IsDeFooBarOpen.nl</title>
|
||||
<link rel="stylesheet" href="generated/main.css">
|
||||
<script src="generated/bundle.js"></script>
|
||||
</head>
|
||||
<body class="open">
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
const path = require('path');
|
||||
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
||||
|
||||
module.exports = {
|
||||
plugins: [
|
||||
new MiniCssExtractPlugin({
|
||||
name: "[name].css",
|
||||
})
|
||||
],
|
||||
entry: './src/index.js',
|
||||
devtool: "source-map",
|
||||
output: {
|
||||
@@ -12,7 +18,9 @@ module.exports = {
|
||||
rules: [{
|
||||
test: /\.scss$/,
|
||||
use: [
|
||||
"style-loader", // creates style nodes from JS strings
|
||||
{
|
||||
loader: MiniCssExtractPlugin.loader,
|
||||
},
|
||||
"css-loader?-url", // translates CSS into CommonJS
|
||||
"postcss-loader", // Will run auto-prefixer for compatibility
|
||||
"sass-loader" // compiles Sass to CSS, using Node Sass by default
|
||||
|
||||
Reference in New Issue
Block a user