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

Extending Webpack #25

Closed
muddlebee opened this issue Dec 31, 2016 · 7 comments
Closed

Extending Webpack #25

muddlebee opened this issue Dec 31, 2016 · 7 comments

Comments

@muddlebee
Copy link

task runner which runs our various tasks of compiling JS, bundling it and reloading browser on change.

@tocttou
Copy link

tocttou commented Dec 31, 2016

There is webpack already included in the project. Extend it instead.

https://github.com/Cloud-CV/IDE/blob/master/webpack.config.js

@tocttou
Copy link

tocttou commented Dec 31, 2016

As you can see, it already transpiles [1] and bundles JS and other assets also [2]:

1: https://github.com/Cloud-CV/IDE/blob/master/webpack.config.js#L10
2: https://github.com/Cloud-CV/IDE/blob/master/webpack.config.js#L7

To restart the server on file change, you may use: https://webpack.github.io/docs/webpack-dev-server.html

@muddlebee
Copy link
Author

thanks @tocttou

@muddlebee
Copy link
Author

@tocttou noob question. changes in the files related to frontend are not reflected back. tried running webpack --watch.? Extending this webpack config might help ?

@tocttou
Copy link

tocttou commented Jan 7, 2017

I am not sure why webpack --watch does not work for you. It should create new files. Make sure you are refreshing by doing Ctrl + F5 instead of F5 to force the browser to fetch actual files instead of the cached ones.

@muddlebee muddlebee changed the title Automating tasks easily with gulpjs Extending Webpack Jan 8, 2017
@virajprabhu
Copy link
Contributor

virajprabhu commented Jan 9, 2017

@anweshknayak Is this fixed? Like @tocttou said, running webpack with watch + refresh ignoring cache should work fine. Meanwhile I'll add watch to the webpack config.

@muddlebee
Copy link
Author

@virajprabhu @tocttou thanks. It is working now :)

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

3 participants