Use postcss to combine & minify styles
This commit is contained in:
parent
d8af8feb43
commit
3afaf86862
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
node_modules
|
2
assets/css/styles.css
Normal file
2
assets/css/styles.css
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
@import "./global.css";
|
||||||
|
@import "./cube.css";
|
3086
package-lock.json
generated
Normal file
3086
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
28
package.json
Normal file
28
package.json
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
"name": "zx-spectrum",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "",
|
||||||
|
"main": "index.js",
|
||||||
|
"scripts": {
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
|
"build:css": "postcss assets/css/styles.css > styles.css"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/lewisdaleuk/zx-spectrum-wp.git"
|
||||||
|
},
|
||||||
|
"author": "",
|
||||||
|
"license": "ISC",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/lewisdaleuk/zx-spectrum-wp/issues"
|
||||||
|
},
|
||||||
|
"homepage": "https://github.com/lewisdaleuk/zx-spectrum-wp#readme",
|
||||||
|
"devDependencies": {
|
||||||
|
"autoprefixer": "^10.4.13",
|
||||||
|
"cssnano": "^5.1.14",
|
||||||
|
"postcss": "^8.4.21",
|
||||||
|
"postcss-cli": "^10.1.0",
|
||||||
|
"postcss-import": "^15.1.0",
|
||||||
|
"postcss-import-ext-glob": "^2.1.1"
|
||||||
|
}
|
||||||
|
}
|
10
postcss.config.js
Normal file
10
postcss.config.js
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
module.exports = {
|
||||||
|
plugins: [
|
||||||
|
require('postcss-import-ext-glob'),
|
||||||
|
require('postcss-import'),
|
||||||
|
require('autoprefixer'),
|
||||||
|
require('cssnano')({
|
||||||
|
preset: 'default',
|
||||||
|
}),
|
||||||
|
]
|
||||||
|
};
|
1
styles.css
Normal file
1
styles.css
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user