Giter Site home page Giter Site logo

Comments (8)

julienrf avatar julienrf commented on July 18, 2024

In the case of the WebScalaJSBundlerPlugin, it could be simple to introduce a new sbt key defining a set of resources to turn into assets: we could just add them to sourceGenerators in Assets.

from scalajs-bundler.

mathieuleclaire avatar mathieuleclaire commented on July 18, 2024

Nice ! Did you deployed it yet ? The 0.4.0-SNAPSHOT does not exist.

from scalajs-bundler.

julienrf avatar julienrf commented on July 18, 2024

Not yet, I’d like to fix #19 before making another release.

from scalajs-bundler.

mathieuleclaire avatar mathieuleclaire commented on July 18, 2024

npmAssets is not found in the 0.4.0-SNAPSHOT. What import is supposed to be used ?

from scalajs-bundler.

julienrf avatar julienrf commented on July 18, 2024

It’s available only in the WebScalaJSBundler plugin. Maybe it does not fit with your use case… Can you tell me more about your project?

from scalajs-bundler.

mathieuleclaire avatar mathieuleclaire commented on July 18, 2024

I didn't realised there was two differents plugins. Now I get it with 0.4.0-SNAPSHOT.
My project is still the https://github.com/openmole/scaladget project. It is a lib through which I bring already some js libs to a any other code thanks the ScalaJSBundlerPlugin. I'd like to bring also some css or fonts. Is it the right scope ?

from scalajs-bundler.

julienrf avatar julienrf commented on July 18, 2024

Indeed it is. But once I’ll have fixed #19 it will be slightly easier for you to achieve what you want.

For now, you probably want to add something similar to the following to the definition of the runDemo task:

IO.copy(crossTarget.value / "node_modules" / "your-asset", demoTarget / "your-asset")

(where "your-asset" is the path of an asset you are interested in)

from scalajs-bundler.

mathieuleclaire avatar mathieuleclaire commented on July 18, 2024

Yes indeed. So I wait for the next issue fix ! Thanks.

from scalajs-bundler.

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.