Semantic-ui: getting unexpected token for import_url in semantic.css file 2.2.14 !

Created on 9 Feb 2018  路  2Comments  路  Source: Semantic-Org/Semantic-UI

Hi,
I have simply cloned this repo and included the files as below (Semantic UI - 2.2.14)

<script type="text/javascript" src="Semantic-UI/dist/semantic.min.css"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript" src="Semantic-UI/dist/semantic.min.js"></script>

Im getting 'invalid or unexpected token' in semantic.css file for the below line

@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic&subset=latin);

screenshot url

im able to open this link in browser (i'm from india)

However if im using the CDN link of this Css file then i'm not getting any issue!
help me to fix this

Most helpful comment

This is simply because your trying to load the semantic.min.css file using a <script> tag not a <link rel="stylesheet"> tag.

All 2 comments

This is simply because your trying to load the semantic.min.css file using a <script> tag not a <link rel="stylesheet"> tag.

how the hell did i missed it (facepalm) ,thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

kntmrkm picture kntmrkm  路  3Comments

iPaoo picture iPaoo  路  3Comments

playgithub picture playgithub  路  3Comments

ghost picture ghost  路  3Comments