Comments (17)
I'm a little confused as to what's happening.
The publish folder will be updated if there's a change to your files. If there's not a change to your files there won't be a change.
Are you seeing any errors in the console?
from ant-build-script.
Sorry, if I was unclear.
I couldn find any errors in the console. (I also tried ant build -debug > log.txt
. https://gist.github.com/woeps/97980c3afb631f160acc)
Of cause I changed the file's content:
- change index.html ➡️
ant build
➡️ index.html in the publish folder changes - change main.css ➡️
ant build
➡️ a new css file (new hashname) is created in the publish folder but not updated in index.html
from ant-build-script.
What does your HTML file look like before and after the build process?
from ant-build-script.
I haven't really changed the html: https://gist.github.com/woeps/1905f2055b71e031f598
If I add some markup it ends up in the publish-folder like it's supposed to be. I'm afraid the same thing isn't working for the css-reference in the html-file.
Btw: Thanks for your really fast reply!
from ant-build-script.
That looks right. I'm not sure what the problem is.
On May 3, 2014 6:49 PM, "woeps" [email protected] wrote:
I haven't really changed the html:
https://gist.github.com/woeps/1905f2055b71e031f598—
Reply to this email directly or view it on GitHubhttps://github.com//issues/175#issuecomment-42118559
.
from ant-build-script.
I'm afraid me neither. I'm trying to get this to work for many hours now, but without any success. That's why I decided to post this issue here.
I haven't started messing with the build.xml file yet, cause I wanted it to be compatible to future updates. - I'll look into that..
Atm it seems the only way to get a valid build (for a changed css-file) is by removing the intermediate-folder. Which is kind of okay, but still a bummer in matter of automation.
I'd need to take a closer look at ant to understand what's really going on in this folder. (This is my first use of ant.)
from ant-build-script.
I don't understand what's wrong. As in I don't understand what us wrong.
Is the css file a 404? You shouldn't have to touch the intermediate folder.
On May 3, 2014 7:01 PM, "woeps" [email protected] wrote:
I'm afraid me neither. I'm trying to get this to work for many hours now,
but without any success. That's why I decided to post this issue here.
I haven't started messing with the build.xml file yet, cause I wanted it
to be compatible to future updates. - I'll look into that..Atm it seems the only way to get a valid build (for a changed css-file) is
by removing the intermediate-folder. Which is kind of okay, but still a
bummer in matter of automation.I'd need to take a closer look at ant to understand what's really going on
in this folder. (This is my first use of ant.)—
Reply to this email directly or view it on GitHubhttps://github.com//issues/175#issuecomment-42118759
.
from ant-build-script.
For test purposes I used the main.css which got shipped with bp5.
I only added a (background-)color-atribute to the body declaration (right after the comments which line out, to put additional data afterwards). It appears to be right when checking the original index.html in the browser.
But like I said: after the build the updated css gets copied to the publish-folder with a new hashname but the index.html doesn't get updated with the new hashname.
from ant-build-script.
What you're describing is confusing. Feel free to send me your whole
working directory. Otherwise I have no clue what's going on.
On May 3, 2014 7:17 PM, "woeps" [email protected] wrote:
For test purposes I used the main.css which got shipped with bp5.
I only added a (background-)color-atribute to the body (right after the
comments which line out, to put additional data afterwards). It appears to
be right when checking the original index.html in the browser.
But like I said: after the build the updated css gets copied to the
publish-folder with a new hashname but the index.html doesn't get updated
with the new hashname.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/175#issuecomment-42119023
.
from ant-build-script.
I pushed my entire working directory here: https://github.com/woeps/mybp5.git
from ant-build-script.
Ack, sorry I missed that you had updated this. I can take a look if it's still a problem.
from ant-build-script.
I'd be glad if you had any suggestions. - Still wasn't able to find the
cause of this problem.
from ant-build-script.
+1 i am sitting with the same problem. Custom css and js files (mani.css, helper.js, main.js) are minified and concatenated but not referenced in the index.html of the publish folder. I use the 1.1.0 branch of Ant.
I hope we can shed some light on this, i have very little to no experience with Ant.
For now i will just reference the names of the minified files to index myself, and remove the original file names.
from ant-build-script.
I'll take a look at this this week. I've had a plan to release 1.1.0 soon and this is one of the things I needed to clear up.
from ant-build-script.
Wonderful, thanks for the super fast feedback!
from ant-build-script.
Thank me when I've figured it out :)
The good news is, the "release 1.1.0" item has made it onto my daily to-dos, so it's on the radar at least. This just made no sense to me when I looked at it originally. This is something that worked before so it's a regression somewhere which is always fun to hunt down.
from ant-build-script.
Please take a look at the latest in the 1.1.0 branch.
from ant-build-script.
Related Issues (20)
- Change docs to address confusion HOT 2
- Can't copy minified js directory over to publish HOT 2
- Concatenation after minifying and ADVANCED_OPTIMIZATIONS HOT 5
- Image Optimization Broken on Linux/Mac HOT 9
- Minifying any unconcatenated css files... FileNotFoundException HOT 2
- The gem-sass.jar throws an exception with Foundation 4 HOT 3
- Image Optimization HOT 5
- Rework Image Optimization HOT 15
- CSS reference not updating w/php includes on build HOT 6
- Mavericks Upgrade: Busted Macports for Ant HOT 2
- Unicode characters being inserted between css imports upon concatenation. HOT 5
- working with sass stylesheets HOT 1
- problem with advpng and java.. HOT 5
- set language_in option for closure compiler? HOT 6
- Port to NodeJs HOT 1
- css does not minify/concat correctly when using default main.css HOT 7
- ant validate only validates single page HOT 1
- JS files vanished in publish/ directory HOT 1
- How to use this build script outside my project? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ant-build-script.