Git Product home page Git Product logo

sbt-webpack's People

Contributors

igreulich avatar josmga755 avatar tanin47 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sbt-webpack's Issues

Failure in production mode

When webpack config's mode is set to production, the dependency-tree.json's content looks like below:

[{"output":"javascripts/node_modules.js","dependencies":[0]},{"output":"javascripts/vendor.js","dependencies":[2]},{"output":"javascripts/compiled.js","dependencies":[1,3,4]},{"output":"javascripts/compiled2.js","dependencies":[1,5]}]

This needs more investigation.

Can't find dependency

Hello Tanin,

Thanks for taking the time to develop this. I tried the very first steps to add the resolver and the plugin, however I face this issue:

Unresolved dependencies: givers.webpack#sbt-webpack;0.2.0: not found

Do you have any clue?

Support wildcard in entry's input

We should support wildcard path in entry's input. At GIVE.asia, we have a use case where we want to compile all Javascripts in a folder into a single file.

Version 0.9.0 Not Found

The following in plugins.sbt doesn't resolve for me:

resolvers += Resolver.bintrayRepo("givers", "maven")
addSbtPlugin("givers.webpack" % "sbt-webpack" % "0.9.0")

Add support for map files

Right now, sbt-webpack does not support external source-maps.

With webpack's devtool, broadly speaking, you have the option to create no source maps, inline source maps, or external source maps. As far as the plugin goes, webpack makes any source map you ask it to, but sbt-webpack does not move the external ones, or register them with sbt to be moved by the asset pipeline. As such, they are not available in the browser.

This is a problem when your app uses a tool like raygun.js to help with error monitoring. Raygun consumes the external source maps to point your errors to the right pieces of code in it's reports.

@tanin47 I have a new project for us, lol.

'No changes to compile'

First, this is a discussion more than a bug, at least right now.

Per this line, if webpack did not change anything, it prints out some text in the console; 'No changes to compile.'

It doesn't SEEM to be accurate. I made a basic test project, mimicking our app's setup and config, but way smaller, you can see it here. Everytime I make a change to a.js or b.js webpack rebuilds, but then prints that string.

There also seems to be an issue where webpack does not rebuild if you modify files that are in it's bundle, but do not export something. (We use angular 1.7, and that is not an uncommon occurrence in ngjs.) I am looking into webpack specifically about that part. It might just be that without an export, webpack won't rebuild. (But I don't know yet.)

@tanin47

Unnecessary recompilation

Playframework recompiles not only when the source file changes, but also when the output file change.

This happens because we build the relationship between the output file and all of its transitive dependencies.

Right now it seems infeasible to detect whether a source file is a immediate dependency of an output file when the output file is a product of file splitting.

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.