WikiWatershed / mmw-micro

Micro Site Storm Model
Apache License 2.0
1 stars 0 forks source link

Rethink Development Server #5

Open rajadain opened 8 years ago

rajadain commented 8 years ago

Currently the bundle.sh scripts writes to the /dist folder, and server.sh serves from the /dist folder. Since the /dist folder is used to push to production, it shouldn't have development-time artifacts such as source maps or unminified styles / scripts. Consider altering the project structure so that the development setup is served from elsewhere, and /dist only used for production deploys.

Context from #2:

Maybe we shouldn't be exporting to the /dist folder and serving from there for development? This was the easiest thing to do right now, but I feel /dist should only be used for production builds.

kdeloach commented 8 years ago

I don't think there's anything wrong with this. We should be able to generate a different set of artifacts based on the target environment.