fix(assets): update build paths
This commit is contained in:
parent
b7456fdf42
commit
072ec2db46
|
@ -60,7 +60,7 @@ COPY --chown=sculpin:sculpin src src
|
|||
RUN sculpin generate --env prod --output-dir /output/html
|
||||
|
||||
COPY --chown=sculpin:sculpin . .
|
||||
COPY --chown=sculpin:sculpin --from=assets /app/source/build /build
|
||||
COPY --chown=sculpin:sculpin --from=assets /app/build /build
|
||||
|
||||
ENTRYPOINT ["/usr/bin/docker-entrypoint.sh"]
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ console.log(watch);
|
|||
|
||||
esbuild.build({
|
||||
entryPoints: ["./js/app.js"],
|
||||
outfile: "../source/build/app.js",
|
||||
outfile: "/app/build/app.js",
|
||||
bundle: true,
|
||||
minify: minify,
|
||||
sourcemap: sourcemap,
|
||||
|
|
|
@ -1,68 +1,65 @@
|
|||
const colors = require('./tools/tailwindcss/colours')
|
||||
const defaultTheme = require('tailwindcss/defaultTheme')
|
||||
const { fontFamily } = defaultTheme
|
||||
const colors = require("./tailwindcss/colours");
|
||||
const defaultTheme = require("tailwindcss/defaultTheme");
|
||||
const { fontFamily } = defaultTheme;
|
||||
|
||||
module.exports = {
|
||||
mode: 'jit',
|
||||
darkMode: 'media',
|
||||
mode: "jit",
|
||||
darkMode: "media",
|
||||
important: true,
|
||||
purge: {
|
||||
content: [
|
||||
'tools/tailwindcss/safelist-classes.txt',
|
||||
'source/**/*.{md,twig}',
|
||||
],
|
||||
content: ["./tailwindcss/safelist-classes.txt", "../source/**/*.{md,twig}"],
|
||||
},
|
||||
theme: {
|
||||
outline: {
|
||||
black: '1px solid black',
|
||||
white: '1px solid white'
|
||||
black: "1px solid black",
|
||||
white: "1px solid white",
|
||||
},
|
||||
extend: {
|
||||
typography: (theme) => ({
|
||||
DEFAULT: {
|
||||
css: {
|
||||
p: {
|
||||
lineHeight: 400
|
||||
}
|
||||
}
|
||||
}
|
||||
lineHeight: 400,
|
||||
},
|
||||
},
|
||||
},
|
||||
}),
|
||||
colors,
|
||||
fontFamily: {
|
||||
sans: [
|
||||
'Roboto Condensed',
|
||||
'Arial',
|
||||
'Helvetica Neue',
|
||||
'Helvetica',
|
||||
'sans-serif',
|
||||
"Roboto Condensed",
|
||||
"Arial",
|
||||
"Helvetica Neue",
|
||||
"Helvetica",
|
||||
"sans-serif",
|
||||
],
|
||||
mono: [
|
||||
'ui-monospace',
|
||||
'SFMono-Regular',
|
||||
'SF Mono',
|
||||
'Consolas',
|
||||
'Liberation Mono',
|
||||
...fontFamily.mono
|
||||
]
|
||||
"ui-monospace",
|
||||
"SFMono-Regular",
|
||||
"SF Mono",
|
||||
"Consolas",
|
||||
"Liberation Mono",
|
||||
...fontFamily.mono,
|
||||
],
|
||||
},
|
||||
spacing: {
|
||||
'2px': '2px'
|
||||
"2px": "2px",
|
||||
},
|
||||
borderWidth: {
|
||||
3: '3px'
|
||||
3: "3px",
|
||||
},
|
||||
width: {
|
||||
96: '24rem'
|
||||
}
|
||||
}
|
||||
96: "24rem",
|
||||
},
|
||||
},
|
||||
},
|
||||
corePlugins: {
|
||||
container: false
|
||||
container: false,
|
||||
},
|
||||
plugins: [
|
||||
require('./tools/tailwindcss/plugins/focus-visible'),
|
||||
require('@tailwindcss/aspect-ratio'),
|
||||
require('@tailwindcss/forms'),
|
||||
require('@tailwindcss/typography')
|
||||
]
|
||||
}
|
||||
require("./tailwindcss/plugins/focus-visible"),
|
||||
require("@tailwindcss/aspect-ratio"),
|
||||
require("@tailwindcss/forms"),
|
||||
require("@tailwindcss/typography"),
|
||||
],
|
||||
};
|
||||
|
|
|
@ -88,7 +88,7 @@ function yarn:build:css {
|
|||
|
||||
tailwindcss --postcss \
|
||||
-i css/tailwind.pcss \
|
||||
-o source/build/app.css "${args[@]}"
|
||||
-o /app/build/app.css "${args[@]}"
|
||||
}
|
||||
|
||||
function yarn:build:js {
|
||||
|
|
Loading…
Reference in a new issue