Set up Parcel + LessCSS
This commit is contained in:
parent
32a9853d1c
commit
a9f287412f
5 changed files with 3888 additions and 0 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -10,3 +10,8 @@
|
|||
*.swp
|
||||
|
||||
.DS_Store
|
||||
|
||||
# NodeJS
|
||||
node_modules/
|
||||
public/
|
||||
.parcel-cache/
|
||||
|
|
4
.parcelrc
Normal file
4
.parcelrc
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"extends": "@parcel/config-default",
|
||||
"namers": [ "parcel-namer-rewrite" ]
|
||||
}
|
1
assets/index.less
Normal file
1
assets/index.less
Normal file
|
@ -0,0 +1 @@
|
|||
body {}
|
3852
package-lock.json
generated
Normal file
3852
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
26
package.json
Normal file
26
package.json
Normal 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"
|
||||
}
|
||||
}
|
Reference in a new issue