Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOSED] Question: Where is build target defined? #5734

Open
core-ai-bot opened this issue Aug 30, 2021 · 3 comments
Open

[CLOSED] Question: Where is build target defined? #5734

core-ai-bot opened this issue Aug 30, 2021 · 3 comments

Comments

@core-ai-bot
Copy link
Member

Issue by le717
Saturday Dec 21, 2013 at 03:13 GMT
Originally opened as adobe/brackets#6296


Hello! I just discovered Brackets thanks to the GitHub Pages site update, and am thoroughly enjoying coding with it. Keep up the good work! 👍

I have a question, and I can't seem to find the answer. In #5776, the ability to use un-minified CSS/JS when target is dev and minified when target is dist. I would like to duplicate this ability in my own project, but I have no idea where target is defined, nor where to look (How to Hack on Brackets was of no help).

So, can someone point me in the right direction for duplicating this ability and what I projects I need to download to set it up? I am a beginner Web Designer (though I have a year background in local Python programming), thus I am still new to a lot of this stuff. 😃

Thanks! 😄

@core-ai-bot
Copy link
Member Author

Comment by njx
Monday Jan 06, 2014 at 19:31 GMT


Hi@le717 - we're going to close this out since it's not a Brackets issue. However, if@jasonsanjose has time he might be able to comment on how we set up the gruntfile and Brackets code to do this. Alternatively, you could try posting on the brackets-dev Google Group.

@core-ai-bot
Copy link
Member Author

Comment by jasonsanjose
Monday Jan 06, 2014 at 19:38 GMT


@le717 The dev target is undefined. Here, that defines a default behavior to dynamically compile LESS in-browser, see src/index.html:

    <!--(if target dev)><!-->
    <link rel="stylesheet" type="text/less" href="styles/brackets.less">
    <!--<!(endif)-->

The dist target is defined in the targethtml task defined by https://github.com/changer/grunt-targethtml. In our case, we use this target to use compiled and minified CSS:

    <!--(if target dist)>
    <link rel="stylesheet" type="text/css" href="styles/brackets.min.css">
    <!--<!(endif)-->

If you haven't already, you'll probably want to learn more about Grunt gruntjs.com/getting-started/ and grunt-usemin https://github.com/yeoman/grunt-usemin before using grunt-targethtml.

@core-ai-bot
Copy link
Member Author

Comment by le717
Monday Jan 06, 2014 at 19:50 GMT


@njx No problem, I figured it would be closed since it was not a Brackets issue. 😉

@jasonsanjose Yea, I'll need to read up on Grunt then. I almost assumed it was involved somewhere in here, but I could not tell exactly where.
Thanks for the info! This will really help me in my projects. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant