From ba85c0f114f5ac37ae9a08ade4f893dae3890403 Mon Sep 17 00:00:00 2001 From: Corey M Collins Date: Wed, 10 Feb 2021 16:02:24 -0600 Subject: [PATCH] Breaks the Tailwind imports into a separate file to speed up compiling when running wds-start (#569) --- package-lock.json | 56 ++++++++++++++++++++---------------------- src/index.js | 1 + src/scss/index.scss | 7 ------ src/scss/tailwind.scss | 6 +++++ 4 files changed, 34 insertions(+), 36 deletions(-) create mode 100644 src/scss/tailwind.scss diff --git a/package-lock.json b/package-lock.json index 99292b617..6e7d627d3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3001,6 +3001,33 @@ "resolved": "https://registry.npmjs.org/wp-prettier/-/wp-prettier-2.0.5.tgz", "integrity": "sha512-5GCgdeevIXwR3cW4Qj5XWC5MO1iSCz8+IPn0mMw6awAt/PBiey8yyO7MhePRsaMqghJAhg6Q3QLYWSnUHWkG6A==" }, + "puppeteer": { + "version": "npm:puppeteer-core@3.0.0", + "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-3.0.0.tgz", + "integrity": "sha512-oWjZFGMc0q2ak+8OxdmMffS79LIT0UEtmpV4h1/AARvESIqqKljf8mrfP+dQ2kas7XttsAZIxRBuWu7Y5JH8KQ==", + "requires": { + "@types/mime-types": "^2.1.0", + "debug": "^4.1.0", + "extract-zip": "^2.0.0", + "https-proxy-agent": "^4.0.0", + "mime": "^2.0.3", + "mime-types": "^2.1.25", + "progress": "^2.0.1", + "proxy-from-env": "^1.0.0", + "rimraf": "^3.0.2", + "tar-fs": "^2.0.0", + "unbzip2-stream": "^1.3.3", + "ws": "^7.2.3" + } + }, + "rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "requires": { + "glob": "^7.1.3" + } + }, "shebang-command": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", @@ -14553,35 +14580,6 @@ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" }, - "puppeteer": { - "version": "npm:puppeteer-core@3.0.0", - "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-3.0.0.tgz", - "integrity": "sha512-oWjZFGMc0q2ak+8OxdmMffS79LIT0UEtmpV4h1/AARvESIqqKljf8mrfP+dQ2kas7XttsAZIxRBuWu7Y5JH8KQ==", - "requires": { - "@types/mime-types": "^2.1.0", - "debug": "^4.1.0", - "extract-zip": "^2.0.0", - "https-proxy-agent": "^4.0.0", - "mime": "^2.0.3", - "mime-types": "^2.1.25", - "progress": "^2.0.1", - "proxy-from-env": "^1.0.0", - "rimraf": "^3.0.2", - "tar-fs": "^2.0.0", - "unbzip2-stream": "^1.3.3", - "ws": "^7.2.3" - }, - "dependencies": { - "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "requires": { - "glob": "^7.1.3" - } - } - } - }, "purgecss": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/purgecss/-/purgecss-3.0.0.tgz", diff --git a/src/index.js b/src/index.js index 4c2da89e3..fe87328c8 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,6 @@ /* eslint-disable no-unused-vars */ +import './scss/tailwind.scss'; import './scss/index.scss'; // Make sure JS is enabled and the window is ready. diff --git a/src/scss/index.scss b/src/scss/index.scss index d2d0439c4..9d7cb0d1c 100644 --- a/src/scss/index.scss +++ b/src/scss/index.scss @@ -1,10 +1,3 @@ -//----------------------------------------- -// Tailwind Files -//----------------------------------------- -@tailwind base; -@tailwind components; -@tailwind utilities; - //----------------------------------------- // Theme Files //----------------------------------------- diff --git a/src/scss/tailwind.scss b/src/scss/tailwind.scss new file mode 100644 index 000000000..a2db0822f --- /dev/null +++ b/src/scss/tailwind.scss @@ -0,0 +1,6 @@ +//----------------------------------------- +// Tailwind Files +//----------------------------------------- +@tailwind base; +@tailwind components; +@tailwind utilities;