-
Im a bit new at this web dev game. I noticed that the static files were not being built (from parcel) with the package.json initial setup. I made a small change and it seems to have fixed it. I am not sure if this happened because of something on my end or not so I do not want to make this a bug report, Just figured I would share it. Thanks! Original package.json did not style correctly {
"name": "app",
"version": "0.0.0",
"description": "Frontend part of the Gowebly project.",
"license": "MIT",
"browserslist": "> 0.5%, last 2 versions, not dead",
"source": [
"./assets/scripts.js",
"./assets/styles.scss"
],
"targets": {
"default": {
"distDir": "./static"
}
},
"scripts": {
"watch": "parcel watch",
"fmt": "prettier --write .",
"dev": "parcel build --no-optimize",
"build": "parcel build"
},
"dependencies": {
"@tailwindcss/forms": "latest",
"@tailwindcss/typography": "latest",
"tailwindcss": "latest",
"preline": "latest",
"alpinejs": "latest",
"htmx.org": "latest"
},
"devDependencies": {
"@parcel/transformer-sass": "latest",
"parcel": "latest",
"prettier": "latest"
}
} New JSON seems to fix issue {
"name": "app",
"version": "0.0.0",
"description": "Frontend part of the Gowebly project.",
"license": "MIT",
"browserslist": "> 0.5%, last 2 versions, not dead",
"scripts": {
"watch": "parcel watch ./assets/scripts.js ./assets/styles.scss --dist-dir ./static",
"fmt": "prettier --write .",
"dev": "parcel build ./assets/scripts.js ./assets/styles.scss --dist-dir ./static --no-optimize",
"build": "parcel build ./assets/scripts.js ./assets/styles.scss --dist-dir ./static"
},
"dependencies": {
"@tailwindcss/forms": "latest",
"@tailwindcss/typography": "latest",
"tailwindcss": "latest",
"preline": "latest",
"alpinejs": "latest",
"htmx.org": "latest"
},
"devDependencies": {
"@parcel/transformer-sass": "latest",
"parcel": "latest",
"prettier": "latest"
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
koddr
Jul 20, 2024
Replies: 1 comment 1 reply
-
Hi, @Deufel Yes, you're absolutely right. This is a new way for the Parcel bundler. I already fixed it in the Gowebly CLI |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Deufel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, @Deufel
Yes, you're absolutely right. This is a new way for the Parcel bundler.
I already fixed it in the Gowebly CLI
v2.6.5
.