Comments (3)
Apparently this should work as advertised:
UIBuild.scala
:
override def afterStarted(addr: InetSocketAddress): Unit = {
process = Option(
Process("npm run build -- --watch", base / "ui").run
)
}
Problem might be related to Play server not refreshing the asset after it's rebuilt by ng2
's watcher process. I'll investigate.
from play-ng2-webpack2.
Confirmed, Play is not reloading when unmanaged resource is changed. I'll see what I can do about this. For now I advise running angular 2 via ng serve when possible.
from play-ng2-webpack2.
Ok, fixed to some extent (--aot
can't be used with ng build -w
yet: angular/angular-cli#5137). This will be included in today's update, but it comes with several changes and update to angular cli and angular itself, sorry.
from play-ng2-webpack2.
Related Issues (9)
- Running on Windows 10? HOT 11
- normalize_file_names.sh not found HOT 3
- Integrating play-ng2-webpack2 with ionic3 HOT 1
- Update to recent Angular Versions HOT 3
- Updates HOT 6
- Lazy loading that webpack require 0.chunk.js is invalid url HOT 2
- Error during ng build: ENOTEMPTY "...\public\ui\" HOT 2
- Runnnig tests HOT 2
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 play-ng2-webpack2.