mrsum / webpack-svgstore-plugin

Simple svg-sprite creating with webpack
https://www.npmjs.com/package/webpack-svgstore-plugin
200 stars 92 forks source link

Treeshaking breaks sprite build #120

Open AndyOGo opened 7 years ago

AndyOGo commented 7 years ago

Using rollup-loader to utilize treeshaking removes all function marks like var __svg__, var __sprite__, etc.

Hence no sprites get generated.

I suppose to put this configs inside the webpack config itself, mapped by each entry points name.

mrsum commented 7 years ago

Is it [WIP] currently, right?

AndyOGo commented 7 years ago

@mrsum Yeah it is WIP, actuallyI'm not certain if it got abandoned in favour of webpack 2.

Anyway function marks will fail with treeshaking approach.

mrsum commented 7 years ago

@AndyOGo Okay, i will fix it ASAP.