Skip to content

Commit 5140367

Browse files
committed
get inline css going and parcel2
1 parent 1d98d9e commit 5140367

File tree

4 files changed

+19
-36
lines changed

4 files changed

+19
-36
lines changed

.vscode/launch.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
{
2-
// Use IntelliSense to learn about possible attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5-
"version": "0.2.0",
62
"configurations": [
73
{
8-
"type": "pwa-node",
4+
"type": "node",
95
"request": "launch",
10-
"name": "Launch Program",
11-
"skipFiles": [
12-
"<node_internals>/**"
13-
],
14-
"program": "${file}"
15-
}
6+
"name": "Launch Parcel",
7+
"program": "${workspaceFolder}/node_modules/parcel/lib/bin.js", // node_modules/parcel/lib/bin.js
8+
// node_modules/.bin/parcel build src/index.html --log-level verbose --detailed-report 3 --no-cache
9+
// "args": ["build", "src/index.html", "--log-level", "verbose", "--detailed-report", "3", "--no-cache"],
10+
"args": ["build", "src/index.html"],
11+
"console": "integratedTerminal",
12+
"cwd": "${workspaceRoot}/",
13+
"outFiles": ["dist/**"],
14+
// "stopOnEntry": true,
15+
"sourceMaps": true,
16+
"env": { "PARCEL_WORKERS": "0" }
17+
}
1618
]
1719
}

package-lock.json

Lines changed: 0 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
"scripts": {
66
"parcel:dev": "parcel src/index.html",
77
"parcel:build": "parcel build src/index.html --log-level verbose --detailed-report 3 --no-cache",
8-
"tailwind:dev": "tailwindcss-cli build ./src/css/source.css -o ./src/css/compiled.css",
9-
"tailwind:build": "NODE_ENV=production tailwindcss-cli build ./src/css/source.css -o ./src/css/compiled.css",
108
"clean": "rimraf dist .cache",
119
"start": "npm-run-all -s clean parcel:dev",
1210
"prod": "npm-run-all -s clean parcel:build"
@@ -17,7 +15,6 @@
1715
"autoprefixer": "^10.1.0",
1816
"npm-run-all": "^4.1.5",
1917
"parcel": "^2.0.0-nightly.476",
20-
"parcel-packager-inline-css": "file:../../parcel-packager-inline-css",
2118
"postcss": "^8.2.1",
2219
"postcss-import": "^13.0.0",
2320
"postcss-purgecss": "^2.0.3",

src/index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717
<meta name="description" content="" />
1818
<meta name="keywords" content="" />
1919
<meta name="author" content="" />
20-
<link rel="stylesheet" href="./css/styles.css" />
20+
<style>
21+
@import "tailwindcss/base";
22+
@import "tailwindcss/components";
23+
@import "./css/main.css";
24+
@import "tailwindcss/utilities";
25+
</style>
2126
<meta property="og:url" content="https://www.nullvariable.com" />
2227
<meta property="og:title" content="Nullvariable Web Consulting" />
2328
<meta property="og:description" content="Ecommerce and Web Performance Consulting" />

0 commit comments

Comments
 (0)