souldzin / fritz-gamera

Repo for our three.js game! Requirements pending...
0 stars 0 forks source link

webpack dev server - change what happens on save file? #1

Open souldzin opened 7 years ago

souldzin commented 7 years ago

Current Scenario:

Thoughts:

Is there a way to keep the dev server from live reloading the webpage on file save? It's kind've problematic for me since I habitually save files often. Is there a way I can flag it off for my local environment?

Also, it might be cool to hook into the build server to run our test script.

souldzin commented 7 years ago

This makes it seem like I might be looking for something out of webpack's scope....

JackSkylark commented 7 years ago

So I'm thinking about ditching Webpack and using gulp and rollup.js. I'll make a PR here today that shows how I'm thinking we can setup the project.

EDIT: No reason to switch to to rollup, might as well stick with webpack.

JackSkylark commented 7 years ago

I don't see any issue with using gulp for our tasks (even starting webpack(!)). That's what it's used for. I think that webpack is a really easy and descriptive bundling system and we can take advantage of some of its build optimizations. Until we need a custom task that would be better achieved with gulp, I think that we should use the package.json scripts for tasks.

souldzin commented 7 years ago

So I created a few cards in the project board to capture the requirements of this issue. When these have been resolved we can close this issue.

JackSkylark commented 7 years ago

Perfect. I'll start looking into these soon.