Set up Parcel + LessCSS

This commit is contained in:
DarkCat09 2023-10-13 18:27:28 +04:00
parent 32a9853d1c
commit a9f287412f
Signed by: DarkCat09
GPG key ID: 0A26CD5B3345D6E3
5 changed files with 3888 additions and 0 deletions

5
.gitignore vendored
View file

@ -10,3 +10,8 @@
*.swp *.swp
.DS_Store .DS_Store
# NodeJS
node_modules/
public/
.parcel-cache/

4
.parcelrc Normal file
View file

@ -0,0 +1,4 @@
{
"extends": "@parcel/config-default",
"namers": [ "parcel-namer-rewrite" ]
}

1
assets/index.less Normal file
View file

@ -0,0 +1 @@
body {}

3852
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

26
package.json Normal file
View file

@ -0,0 +1,26 @@
{
"scripts": {
"build": "parcel build --no-source-maps --dist-dir ./public/assets/ assets/**/*",
"dev": "parcel watch --dist-dir ./public/assets/ assets/**/*",
"clean": "rm -rf ./public/assets"
},
"dependencies": {
"@parcel/transformer-less": "^2.10.0",
"parcel": "^2.10.0"
},
"parcel-namer-rewrite": {
"chain": "@parcel/namer-default",
"hashing": "always",
"rules": {
"(.*)\\.(css|js)": "$1{.hash}.$2"
},
"profiles": {
"development": {
"hashing": "always"
}
}
},
"devDependencies": {
"parcel-namer-rewrite": "^2.0.0-rc.3"
}
}