webpack-svgstore-plugin icon indicating copy to clipboard operation
webpack-svgstore-plugin copied to clipboard

Treeshaking breaks sprite build

Open AndyOGo opened this issue 8 years ago • 3 comments

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.

AndyOGo avatar Nov 14 '16 10:11 AndyOGo

Is it [WIP] currently, right?

mrsum avatar Nov 14 '16 14:11 mrsum

@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.

AndyOGo avatar Nov 14 '16 14:11 AndyOGo

@AndyOGo Okay, i will fix it ASAP.

mrsum avatar Nov 14 '16 16:11 mrsum