You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to disable generation source map generation using options? This will speed up compilation on watch when i disable source map in webpack. It would be nice if this option was taken from the webpack config by default. If your accept i can do PR.
@evilebottnawi Yep, right, could you check the #177, I intend to do that for v2.0.0 since it is technically a semver major, but wainting for other related loaders I need to update first style-loader/ extract-text-webpack-plugin
v2.0.0 should work without css-loader and export a module directly (perf), but it is planned to export ES2015 Modules in the near future and style-loader/ extract-text-webpack-plugin don't support that yet. If you what to try that out you need to change this line to a CJS Export
Otherwise by using use: [ 'style-loader', 'css-loader', 'postcss-loader' ] you can skip that part, since postcss-loader will export a {String} as it is the current behaviour.
Activity
michael-ciniawsky commentedon Apr 7, 2017
@evilebottnawi Yep, right, could you check the #177, I intend to do that for v2.0.0 since it is technically a semver major, but wainting for other related loaders I need to update first
style-loader/extract-text-webpack-pluginalexander-akait commentedon Apr 7, 2017
@michael-ciniawsky can i help you with this?
michael-ciniawsky commentedon Apr 7, 2017
@evilebottnawi Yep 😛 test if disabling sourcemaps works correctly
Sourcemap Implementation is here
v2.0.0 should work without
css-loaderand export a module directly (perf), but it is planned to export ES2015 Modules in the near future andstyle-loader/extract-text-webpack-plugindon't support that yet. If you what to try that out you need to change this line to a CJS Exportwebpack.config.js
Otherwise by using
use: [ 'style-loader', 'css-loader', 'postcss-loader' ]you can skip that part, sincepostcss-loaderwill export a{String}as it is the current behaviour.michael-ciniawsky commentedon Apr 7, 2017
npm i -D michael-ciniawsky/postcss-loader#v2[-]Disable source map using option [/-][+]refactor: Disable source map using option [/+][-]refactor: Disable source map using option [/-][+]refactor: disable source map using option [/+]alexander-akait commentedon Apr 27, 2017
/cc @michael-ciniawsky let's do this, add options
sourceMapas incss-loader?alexander-akait commentedon Apr 28, 2017
/cc @michael-ciniawsky ping 😄
michael-ciniawsky commentedon May 2, 2017
Fixed by #191