levp / wrapper-webpack-plugin

A webpack plugin that wraps output files (chunks) with custom text or code.
91 stars 37 forks source link

Added condition to match files correctly #1

Closed crimx closed 7 years ago

crimx commented 7 years ago

The plugin is trying to wrap all the files, which are not necessary the same format. Added test option for more control.

ischyron commented 7 years ago

this is a useful feature. I am using this. helps with excluding css for ExtractTextPlugin @levp can you merge this pls

ischyron commented 7 years ago

is this repo abandoned ? @levp ?

crimx commented 7 years ago

@ischyron I think so. Try this https://www.npmjs.com/package/wrapper-webpack-plugin2.

levp commented 7 years ago

@ischyron @crimx It's not abandoned, I didn't know there's any interest in this. I'll get to it shortly.

levp commented 7 years ago

@crimx @ischyron Pull request has been merged, sorry for the delay.

@crimx Not sure what's the "GitHub" way of doing this, but I've made a few more commits editing your changes; mainly to avoid using ES6 features. I know the support is pretty good by now but I think the code is too small and simple to really need that.

I assume a CONTRIBUTERS.md file is needed now?

crimx commented 7 years ago

@levp Fine with me. Glad to see the repository's back up and running.