thenickdude / chickenpaint

An HTML5 Port of the ChibiPaint multi-layer Oekaki painting tool
GNU General Public License v3.0
117 stars 21 forks source link

css stylesheet appears to fail to be loaded #21

Closed blurymind closed 3 years ago

blurymind commented 3 years ago

After building and running the localhost, i get this with no errors in console image

thenickdude commented 3 years ago

What does the file in resources/css/chickenpaint.css have in it? If it's empty, delete it and run make again.

blurymind commented 3 years ago

there is a sass file there, but the index is pointing to css image

for some reason make is not transpiling the sass to a css file

blurymind commented 3 years ago

this is what I get when building

/usr/bin/node /usr/lib/node_modules/npm/bin/npm-cli.js run build --scripts-prepend-node-path=auto

> chickenpaint@0.1.0 build
> make

node_modules/.bin/sass resources/css/chickenpaint.scss > resources/css/chickenpaint.css
node_modules/.bin/postcss --replace resources/css/chickenpaint.css

Process finished with exit code 0
blurymind commented 3 years ago

interesting, while intellij doesnt list the file, it does exist and is created

image

thenickdude commented 3 years ago

Hit the little expand arrow on the .scss file to show the css file (IntelliJ bundles generated files together with their originals)

thenickdude commented 3 years ago

Fixed 'make generates empty chickenpaint.css if SCSS isn't installed' in 146ab4792dddaebc8e65da33bf21a171ba78df7d

blurymind commented 3 years ago

wow you are fast.

Btw running npm start in a terminal outside of intellij also resolves the issue, so it appears to be specific to running it in intellij via the terminal in it or the run command dropdown

blurymind commented 3 years ago

I confirm your fix made it work in intellij :+1: thanks for that :)