Skip to content

Commit 2d9f895

Browse files
committed
Add support for TailwindCSS v2, PostCSS v8, and Parcel v2
1 parent fc63fdf commit 2d9f895

14 files changed

+2912
-108424
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.DS_Store
22
node_modules
33
.cache
4+
.parcel-cache
45
dist

.htmlnanorc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"minifySvg": false
2+
"minifySvg": false
33
}

.postcssrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"plugins": {
3+
"tailwindcss": {},
4+
"autoprefixer": {}
5+
}
6+
}

.posthtmlrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"plugins": {
3+
"posthtml-include": { "root": "src" },
4+
"posthtml-expressions": {}
5+
}
6+
}

package.json

Lines changed: 16 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,57 +2,46 @@
22
"name": "tailwindcss-parcel-boilerplate",
33
"version": "1.0.0",
44
"description": "",
5-
"main": "src/index.js",
5+
"license": "MIT",
6+
"keywords": ["tailwindcss", "tailwind css", "tailwind", "parcel", "postcss", "posthtml"],
7+
"author": {
8+
"name": "Nestor Vera",
9+
"email": "[email protected]",
10+
"url": "https://nestor.rip/"
11+
},
612
"repository": {
713
"type": "git",
814
"url": "git+https://github.com/hacknug/tailwindcss-parcel-boilerplate.git"
915
},
1016
"scripts": {
1117
"postcss:watch": "postcss src/assets/css/index.pcss -o src/assets/css/index.css --env development -w",
1218
"postcss:build": "postcss src/assets/css/index.pcss -o src/assets/css/index.css --env production",
13-
"parcel:serve": "parcel src/index.html",
14-
"parcel:watch": "parcel watch src/index.html",
15-
"parcel:build": "parcel build src/index.html",
16-
"clean": "rm -rf dist .cache",
19+
"parcel:serve": "parcel serve ./src/index.html",
20+
"parcel:watch": "parcel watch ./src/index.html",
21+
"parcel:build": "parcel build ./src/index.html",
22+
"clean": "rm -rf dist .parcel-cache",
1723
"build": "npm-run-all -s clean postcss:build parcel:build",
1824
"start": "npm-run-all -s clean -p postcss:watch parcel:serve"
1925
},
20-
"keywords": [
21-
"tailwind",
22-
"tailwindcss",
23-
"tailwind css",
24-
"parcel",
25-
"postcss",
26-
"posthtml"
27-
],
28-
"author": {
29-
"name": "Nestor Vera",
30-
"email": "[email protected]",
31-
"url": "https://nestor.rip/"
32-
},
33-
"license": "MIT",
34-
"dependencies": {
35-
"parcel-bundler": "1.12.5"
36-
},
3726
"devDependencies": {
38-
"@fullhuman/postcss-purgecss": "1.3.0",
39-
"autoprefixer": "9.8.6",
40-
"cssnano": "4.1.11",
27+
"@fullhuman/postcss-purgecss": "4.0.3",
28+
"autoprefixer": "10.2.6",
29+
"cssnano": "5.0.5",
4130
"eslint": "7.28.0",
4231
"eslint-config-standard": "16.0.3",
4332
"eslint-plugin-import": "2.23.4",
4433
"eslint-plugin-node": "11.1.0",
4534
"eslint-plugin-promise": "5.1.0",
4635
"npm-run-all": "4.1.5",
36+
"parcel": "2.0.0-beta.3.1",
4737
"parcel-plugin-bundle-visualiser": "1.2.0",
4838
"percy": "0.28.6",
4939
"postcss": "8.3.0",
5040
"postcss-cli": "8.3.1",
51-
"postcss-fontpath": "1.0.0",
5241
"posthtml-expressions": "1.7.1",
5342
"posthtml-include": "1.7.1",
5443
"posthtml-load-config": "2.0.0",
5544
"stylelint-config-standard": "22.0.0",
56-
"tailwindcss": "1.9.6"
45+
"tailwindcss": "2.1.4"
5746
}
5847
}

0 commit comments

Comments
 (0)