This repository has been archived by the owner on May 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 512
Possibility to disable css source maps #235
Comments
I was able to disable sourcemaps for CSS files using |
This is an issue in |
I don't understand. I have all my sourcemaps turned off: let cssLoaders = [
{
loader: 'css-loader',
options: {
// sourceMap: false,
root: publicDir.replace(/\\/g, '/'),
localIdentName: '[name]_[local]--[hash:base64:5]',
minimize: !isWDS,
sourceMap: false,
}
},
{
loader: 'postcss-loader',
options: {
sourceMap: false,
plugins: loader => [
require('autoprefixer')({browsers: supportedBrowsers}),
],
}
},
];
let lessLoaders = [
...cssLoaders,
{
loader: 'less-loader',
options: {
sourceMap: false,
strictMath: true,
strictUnits: true,
},
},
]; I'm using css-loader 0.28.11. I do not want to turn my devtool off. I still want sourcemaps for JavaScript. I'm using webpack 3. The PR has been merged. |
@mnpenner use |
@evilebottnawi But I want them off because the sourcemaps don't work anyways. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm using webpack with config:
Source map is created automatically, but I don't need it. Besides, produced
css
file has no path for source map in it and produced source map is useless:Is there an option to disable its creation?
The text was updated successfully, but these errors were encountered: