Skip to content

I want to apply fomantic-ui to index.pug that is made of npm for node.js #792

Answered by lubber-de
kimnakyeong asked this question in General
Discussion options

You must be logged in to vote

@kimnakyeong
If your folder structure looks like this:

semantic
     | dist
        |- semantic.js
        |- semantic.css
index.pug

Then do not use the parent folder ".." but

  script(src='https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js')
  link(rel='stylesheet', type='text/css', href='semantic/dist/semantic.css')
  script(src='semantic/dist/semantic.js')

instead.

Using ".." would be correct if your folder structure looks like this

semantic
     | dist
        |- semantic.js
        |- semantic.css
mysite
     |- index.pug

However, if you use the dist versions of Fomantic and dont want to create own themes (as @hammy2899 mentioned above) and already use a cdn for jquery yo…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by lubber-de
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #792 on October 07, 2020 20:54.