react-sortable-tree-theme-full-node-drag
react-sortable-tree-theme-full-node-drag copied to clipboard
don't use style-loader in production
style-loader forces inline <style /> tags upon users of this library.
This is a security problem since it prevents the application of sane CSP configuration. ( requires style-src 'unsafe-inline';)
Webpack 4 has the superawesome MinCssExtractPlugin this purpose, this enables users of this library to use the webpack plugin pipline (html-webpack-plugin et al.) to decide if the wan't to inline the library styles or use them in a bundle.
The PR includes
- use
MinCssExtractPluginplugin in production builds - upgrade to Webpack 4 in order to useMiniCssExtractPlugin
@fritz-c any thoughts?