ol-cesium-webpack-example
ol-cesium-webpack-example copied to clipboard
CSS not packaged on npm start
Thanks for the cool example.
I am running it with npm start
and noticed that main.css
is not loaded when accessing it through localhost:8080
. Is there something missing in the WebPack config?
Can be fixed by adding require('./css/main.css');
it in index.js
, not sure if this is the best way though.
I downloaded this example on my PC, but need guidance on how to run it, should I put this where I have downloaded ol-cesium ? When I tried directly running (npm start) from this downloaded folder, I get the following error.
E:\ol-cesium-webpack-example-master\ol-cesium-webpack-example-master>npm start
[email protected] start E:\ol-cesium-webpack-example-master\ol-cesium-webpack-example-master webpack-dev-server --config webpack.config.js
'webpack-dev-server' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: webpack-dev-server --config webpack.config.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\sck\AppData\Roaming\npm-cache_logs\2018-08-29T12_22_12_929Z-debug.log
E:\ol-cesium-webpack-example-master\ol-cesium-webpack-example-master>