mikemorris revised this gist 3 months ago. Go to revision
1 file changed, 4 insertions
tailwindcss-compiler.js
| @@ -27,10 +27,14 @@ async function build() { | |||
| 27 | 27 | log('-----------------------'); | |
| 28 | 28 | ||
| 29 | 29 | const tailwindoptions = { | |
| 30 | + | prefix: 'tw-', | |
| 30 | 31 | content: [], | |
| 31 | 32 | theme: { | |
| 32 | 33 | extend: {}, | |
| 33 | 34 | }, | |
| 35 | + | corePlugins: { | |
| 36 | + | preflight: false | |
| 37 | + | }, | |
| 34 | 38 | plugins: [], | |
| 35 | 39 | }; | |
| 36 | 40 | ||
mikemorris revised this gist 3 months ago. Go to revision
1 file changed, 4 insertions, 2 deletions
ecosystem.config.cjs
| @@ -1,10 +1,12 @@ | |||
| 1 | 1 | module.exports = { | |
| 2 | 2 | apps : [{ | |
| 3 | 3 | name : "jade-compiler", | |
| 4 | - | script : "/opt/builder/jade-compiler.js" | |
| 4 | + | script : "/opt/builder/jade-compiler.js", | |
| 5 | + | cwd : "/opt/builder" | |
| 5 | 6 | }, | |
| 6 | 7 | { | |
| 7 | 8 | name : "tailwindcss-compiler", | |
| 8 | - | script : "/opt/builder/tailwindcss-compiler.js" | |
| 9 | + | script : "/opt/builder/tailwindcss-compiler.js", | |
| 10 | + | cwd : "/opt/builder" | |
| 9 | 11 | }] | |
| 10 | 12 | } | |
mikemorris revised this gist 3 months ago. Go to revision
1 file changed, 2 insertions, 2 deletions
tailwindcss-compiler.js
| @@ -91,11 +91,11 @@ async function go() { | |||
| 91 | 91 | ] | |
| 92 | 92 | if (process.argv[2] == 'compile-and-watch') { | |
| 93 | 93 | await build(); | |
| 94 | - | startWatcher(); | |
| 94 | + | startWatcher(watchFolders); | |
| 95 | 95 | } else if(process.argv[2] == 'compile-only') { | |
| 96 | 96 | await build(); | |
| 97 | 97 | } else { | |
| 98 | - | startWatcher(); | |
| 98 | + | startWatcher(watchFolders); | |
| 99 | 99 | } | |
| 100 | 100 | } | |
| 101 | 101 | ||
mikemorris revised this gist 3 months ago. Go to revision
1 file changed, 2 insertions, 2 deletions
ecosystem.config.cjs
| @@ -4,7 +4,7 @@ module.exports = { | |||
| 4 | 4 | script : "/opt/builder/jade-compiler.js" | |
| 5 | 5 | }, | |
| 6 | 6 | { | |
| 7 | - | name : "sass-compiler", | |
| 8 | - | script : "/opt/builder/sass-compiler.js" | |
| 7 | + | name : "tailwindcss-compiler", | |
| 8 | + | script : "/opt/builder/tailwindcss-compiler.js" | |
| 9 | 9 | }] | |
| 10 | 10 | } | |
mikemorris revised this gist 3 months ago. Go to revision
1 file changed, 0 insertions, 0 deletions
ecosystem.config.js renamed to ecosystem.config.cjs
File renamed without changes
mikemorris revised this gist 3 months ago. Go to revision
1 file changed, 4 insertions, 4 deletions
ecosystem.config.js
| @@ -1,10 +1,10 @@ | |||
| 1 | 1 | module.exports = { | |
| 2 | 2 | apps : [{ | |
| 3 | - | "name" : "jade-compiler", | |
| 4 | - | "script" : "/opt/builder/jade-compiler.js" | |
| 3 | + | name : "jade-compiler", | |
| 4 | + | script : "/opt/builder/jade-compiler.js" | |
| 5 | 5 | }, | |
| 6 | 6 | { | |
| 7 | - | "name" : "sass-compiler", | |
| 8 | - | "script" : "/opt/builder/sass-compiler.js" | |
| 7 | + | name : "sass-compiler", | |
| 8 | + | script : "/opt/builder/sass-compiler.js" | |
| 9 | 9 | }] | |
| 10 | 10 | } | |
mikemorris revised this gist 3 months ago. Go to revision
1 file changed, 3 insertions, 5 deletions
ecosystem.config.js
| @@ -1,12 +1,10 @@ | |||
| 1 | - | { | |
| 2 | - | [ | |
| 3 | - | { | |
| 1 | + | module.exports = { | |
| 2 | + | apps : [{ | |
| 4 | 3 | "name" : "jade-compiler", | |
| 5 | 4 | "script" : "/opt/builder/jade-compiler.js" | |
| 6 | 5 | }, | |
| 7 | 6 | { | |
| 8 | 7 | "name" : "sass-compiler", | |
| 9 | 8 | "script" : "/opt/builder/sass-compiler.js" | |
| 10 | - | } | |
| 11 | - | ] | |
| 9 | + | }] | |
| 12 | 10 | } | |
mikemorris revised this gist 3 months ago. Go to revision
1 file changed, 4 insertions, 4 deletions
ecosystem.config.js
| @@ -1,12 +1,12 @@ | |||
| 1 | 1 | { | |
| 2 | 2 | [ | |
| 3 | 3 | { | |
| 4 | - | name : "jade-compiler", | |
| 5 | - | script : "/opt/builder/jade-compiler.js" | |
| 4 | + | "name" : "jade-compiler", | |
| 5 | + | "script" : "/opt/builder/jade-compiler.js" | |
| 6 | 6 | }, | |
| 7 | 7 | { | |
| 8 | - | name : "sass-compiler", | |
| 9 | - | script : "/opt/builder/sass-compiler.js" | |
| 8 | + | "name" : "sass-compiler", | |
| 9 | + | "script" : "/opt/builder/sass-compiler.js" | |
| 10 | 10 | } | |
| 11 | 11 | ] | |
| 12 | 12 | } | |
mikemorris revised this gist 3 months ago. Go to revision
1 file changed, 1 insertion, 1 deletion
ecosystem.config.js
| @@ -1,5 +1,5 @@ | |||
| 1 | 1 | { | |
| 2 | - | apps : [ | |
| 2 | + | [ | |
| 3 | 3 | { | |
| 4 | 4 | name : "jade-compiler", | |
| 5 | 5 | script : "/opt/builder/jade-compiler.js" | |
mikemorris revised this gist 3 months ago. Go to revision
1 file changed, 1 insertion, 1 deletion
ecosystem.config.js
| @@ -1,4 +1,4 @@ | |||
| 1 | - | module.exports = { | |
| 1 | + | { | |
| 2 | 2 | apps : [ | |
| 3 | 3 | { | |
| 4 | 4 | name : "jade-compiler", | |