Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS not packaged on npm start #1

Open
maenu opened this issue Jun 12, 2018 · 2 comments
Open

CSS not packaged on npm start #1

maenu opened this issue Jun 12, 2018 · 2 comments

Comments

@maenu
Copy link

maenu commented Jun 12, 2018

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?

@maenu
Copy link
Author

maenu commented Jun 12, 2018

Can be fixed by adding require('./css/main.css'); it in index.js, not sure if this is the best way though.

@SCKgithub
Copy link

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants