Comments (5)
Hi @sthzg, sure just go ahead.
from react-webpack-template.
@weblogixx I've split this issue out in two:
In the V2 version npm start
directly invokes the webpack-dev-server
cli, so there is no way that I know of to listen for the end of the (first) compilation to print a message to the console afterwards. Webpack however prints it by default on the very top (which after bundling is in the scrollback).
If this isn't good enough I don't see another way than bootstrapping the webpack-dev-server
in a script file so that we can register a listener to when the first compilation is done (as a reference the implementation in the V1 branch).
from react-webpack-template.
Yes, there seems to be no way to do this with the command line currently :(. Have to think about that.
from react-webpack-template.
Would there be something speaking against a devserver.js
script in the root dir (like it has been in V3 with server.js
)? After all, it seems to be just a small wrapper around the CLI, or am I missing something?
from react-webpack-template.
The only reason I removed it was that there is one file less and you can parse cli args into the launcher directly.
from react-webpack-template.
Related Issues (20)
- V1 -- Remove --open call on npm start HOT 3
- V2 -- Refactor index.html to be template-driven HOT 8
- V2 -- Update tests to use inline functions HOT 1
- V1 -- Refactor tests to use inline function HOT 1
- V2 -- Add static directory to build step HOT 1
- Update README in src/config dir HOT 1
- V2 -- Update coverage information
- V2 -- Update copying static files to copy-webpack-plugin
- V2 -- Fix eslint rule deprecation warning
- V2 -- serve:dist does not load page HOT 1
- V2 -- Update deprecated es2015-native-modules preset HOT 1
- V2 -- Upgrading to react-hot-loader v3? HOT 2
- V2 -- Centralize defaultPort setting HOT 5
- Module build failed: Error: Couldn't find preset "es2015" HOT 1
- V2 -- Divide env config into appEnv and nodeEnv HOT 1
- V1 -- Add temporary fix for `ReactMount` bug HOT 1
- V2 -- Redundant entry in webpack Base HOT 1
- V2 -- HMR - named Modules
- V2 -- Webpack - NoErrorsPlugin is deprecated
- Is there an easy way to add Express to this webpack-config-template for 'dist'?
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 react-webpack-template.