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

Provide flag to enable webpack 'debug' or 'production' mode #3

Open
mfellner opened this issue May 28, 2016 · 0 comments
Open

Provide flag to enable webpack 'debug' or 'production' mode #3

mfellner opened this issue May 28, 2016 · 0 comments

Comments

@mfellner
Copy link

Webpack offers a debug (for source-maps etc.) and a production (for optimisation) mode.

It would be great to enable either mode in a Lektor build.

Another configuration option that is frequently used in webpack projects is setting the NODE_ENV variable. Webpack can inject its value with the DefinePlugin into code in order to further optimise it. It would make sense to do this when running webpack in the 'production' mode.

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

1 participant