GithubHelp home page GithubHelp logo

Comments (3)

pilwon avatar pilwon commented on August 16, 2024

@jaulz Hmm symbolic link is a tricky one because that is the best way to share bower component between js/less/fonts. If you are looking for less -> css processing, look for less task in Gruntfile. But I think the closest technique that avoids symbolic links is to use bower post-install hook. See how npm-scripts.js is called by scripts section in package.json. It automatically generates config files from sample config files. Unfortunately bower doesn't currently seem to provide this functionality like npm does. Let's find out a good solution for this.

from ultimate-seed.

jaulz avatar jaulz commented on August 16, 2024

@pilwon: it seems there is a misunderstanding. I actually wanted to know how you do the routing between /client/css/* to /.tmp/css/*. You link to /css/main.css in the html file but this file does not exist and instead the main.css from the /.tmp/css folder is retrieved. My proposal to solve this problem would be to write a grunt task that resolves all symbolic links in /client/fonts/ and copies all files to /.tmp/fonts/. Similar to the routing of the css files the fonts will then be loaded from /.tmp/fonts/.

from ultimate-seed.

pilwon avatar pilwon commented on August 16, 2024

@jaulz This is what you're looking for: ultimate's lib/server/express.js But since express server already treats .tmp as one of static directories, you just need to place font files in .tmp/fonts and copy them into {{project.dist}} during grunt build task. I agree with your proposal to use .tmp/fonts for that.

from ultimate-seed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.