Open core-ai-bot opened 3 years ago
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.
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.
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. :wink:
@
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. :smile:
Issue by le717 Saturday Dec 21, 2013 at 03:13 GMT Originally opened as https://github.com/adobe/brackets/issues/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! :+1:
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
isdev
and minified whentarget
isdist
. I would like to duplicate this ability in my own project, but I have no idea wheretarget
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. :smiley:
Thanks! :smile: