Giter VIP home page Giter VIP logo

Comments (7)

nimbupani avatar nimbupani commented on September 18, 2024

we don't use mylibs anymore, can you try the new version of the build script?

from ant-build-script.

bumpux avatar bumpux commented on September 18, 2024

Just built a new one from scratch. Same issue.

I have a file here: ./js/bootstrap/bootstrap-carousel.js

I think this edit in project.properties should do it: file.js.bypass = bootstrap/bootstrap-carousel.js

But the file isn't copied and references form html are not updated. Can you provide an example?

project.properties still references mylibs:

# Add any files or folders within the mylibs directory that you want to be copied to the publish directory as a
# comma separated list

from ant-build-script.

bumpux avatar bumpux commented on September 18, 2024

Just got it going.

project.properties edit: file.js.bypass = bootstrap/bootstrap-carousel.js

AND ensure that the file is outside of the comment block in the html.

You need both :)

Seperate issue that I'll leave to wiser minds: my escaping the script for the carousel worked. So why is the build script munging the bootstrap js?

from ant-build-script.

roblarsen avatar roblarsen commented on September 18, 2024

What are you expecting the reference in the HTML to do? All we do is a big block replace. Those comment tokens just get blown away and replaced with a script tag that points to the new concatenated and minified file. We're doing zero parsing of the contents of individual script tags.If you place the reference outside of those comment tokens nothing should happen at all. The build script is quite literally blind to anything outside of those comment tokens.

(this and the previous crossed in the night. I'll leave it for posterity and... closed)

from ant-build-script.

cmalven avatar cmalven commented on September 18, 2024

The most current version of the project.properties comment still reads:

# Bypassed JavaScript files and dirs
#
# Add any files or folders within the mylibs directory...

Yet you don't use that directory any more? That's a bit confusing.

from ant-build-script.

roblarsen avatar roblarsen commented on September 18, 2024

It is confusing. I'll remove it from the project.properties.

from ant-build-script.

roblarsen avatar roblarsen commented on September 18, 2024

AND... I'm going to purge all the tasks that touch it. time to make an issue for myself.

from ant-build-script.

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.