Is there a way to write the compiled javascript file on disk when using webpack-dev-server?

Originally the webpack-dev-server save files on memory, i'd like to write the bundle to the disk.

Upvotes: 1

Views: 68

Answers (2)

Using webpack -w or webpack --watch, it will bundle the project and save on the disk on the 'dist' or 'build' folder (depends on your webpack configurations).

Click the link bellow to see the configuration options ('aggregateTimeout' and 'poll')

(Configuration options)

Upvotes: 1

Axnyff
Axnyff

Reputation: 9944

It looks like there's a plugin for what you want to do.

Upvotes: 0

Related Questions