Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove extra JS output for CSS entry points
Why: Webpack 4 will soon have the ability to handle CSS inputs/outputs natively, but doesn't yet. As a result, when we add our CSS or Sass files as entry points and use the extract text webpack plugin, or the new webpack 4 compatible mini css extract plugin, we'll get bogus, extraneous JS files generated for each of our CSS assets. See [this issue](webpack-contrib/extract-text-webpack-plugin#518) for more details. This change addresses the need by: Using the `rimraf` package to remove the unnecessary files after build.
- Loading branch information