-
-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble getting source map to work #29
Comments
Nevermind, I figured it out... turns out you actually need |
Why doesn't it work with |
Good Question @yantakus ! I finally got it work with plugins: [
new SourceMapDevToolPlugin({
filename: "[file].map",
exclude: ["/vendor/"]
})
] They say you should not do that:
But it works! And the build still is fast. |
This commit removes the flash on unstyled content while in dev mode that was caused by the use of style-loader. Instead it enables mini-css-extract-plugin in dev in combination with css-hot-loader which enables HMR for development. This is because mini-css-extract-plugin does not currently support HMR out of the box. It also adds a SourceMapDevtoolPlugin to enable sourcemaps with css since mini-css breaks sourcemaps when used in combination with the cheap-module-evel-source-map setting. Related issues: webpack-contrib/mini-css-extract-plugin#34 webpack-contrib/mini-css-extract-plugin#29
This commit removes the flash on unstyled content while in dev mode that was caused by the use of style-loader. Instead it enables mini-css-extract-plugin in dev in combination with css-hot-loader which enables HMR for development. This is because mini-css-extract-plugin does not currently support HMR out of the box. It also adds a SourceMapDevtoolPlugin to enable sourcemaps with css since mini-css breaks sourcemaps when used in combination with the cheap-module-evel-source-map setting. Related issues: webpack-contrib/mini-css-extract-plugin#34 webpack-contrib/mini-css-extract-plugin#29
This commit removes the flash on unstyled content while in dev mode that was caused by the use of style-loader. Instead it enables mini-css-extract-plugin in dev in combination with css-hot-loader which enables HMR for development. This is because mini-css-extract-plugin does not currently support HMR out of the box. It also adds a SourceMapDevtoolPlugin to enable sourcemaps with css since mini-css breaks sourcemaps when used in combination with the cheap-module-evel-source-map setting. Related issues: webpack-contrib/mini-css-extract-plugin#34 webpack-contrib/mini-css-extract-plugin#29
This commit removes the flash on unstyled content while in dev mode that was caused by the use of style-loader. Instead it enables mini-css-extract-plugin in dev in combination with css-hot-loader which enables HMR for development. This is because mini-css-extract-plugin does not currently support HMR out of the box. It also adds a SourceMapDevtoolPlugin to enable sourcemaps with css since mini-css breaks sourcemaps when used in combination with the cheap-module-evel-source-map setting. Related issues: webpack-contrib/mini-css-extract-plugin#34 webpack-contrib/mini-css-extract-plugin#29
Could the maintainer of this plugin clarify whats happening here? |
I have an error when both use: [
MiniCssExtractPlugin.loader,
{
loader: 'css-loader',
options: { sourceMap: true },
},
{
loader: 'less-loader',
options: { sourceMap: true },
},
], The error message:
I'm loading the file in our And of course no css.map file is generated. |
@andrastothtw problem in |
source-map doesn't work with HMR. |
Same configuration as lewebsimple but newer webpack version (4.8.1). Sourcemap doesn't work at all. Bug? How does your solution looks like? |
This commit removes the flash on unstyled content while in dev mode that was caused by the use of style-loader. Instead it enables mini-css-extract-plugin in dev in combination with css-hot-loader which enables HMR for development. This is because mini-css-extract-plugin does not currently support HMR out of the box. It also adds a SourceMapDevtoolPlugin to enable sourcemaps with css since mini-css breaks sourcemaps when used in combination with the cheap-module-evel-source-map setting. Related issues: webpack-contrib/mini-css-extract-plugin#34 webpack-contrib/mini-css-extract-plugin#29
This commit removes the flash on unstyled content while in dev mode that was caused by the use of style-loader. Instead it enables mini-css-extract-plugin in dev in combination with css-hot-loader which enables HMR for development. This is because mini-css-extract-plugin does not currently support HMR out of the box. It also adds a SourceMapDevtoolPlugin to enable sourcemaps with css since mini-css breaks sourcemaps when used in combination with the cheap-module-evel-source-map setting. Related issues: webpack-contrib/mini-css-extract-plugin#34 webpack-contrib/mini-css-extract-plugin#29
@lewebsimple Could you please reopen this issue? Using I personally use |
yeah seriously, this is confusing and frustrating as all hell. |
Have any solution? |
Same issue,
results in no sourcemaps being generated for extracted css |
Please don't spam difference issue in other issue, your problem can't be solved here never, source map getting from |
Any solution? |
@SirKlaus you saved my day by helping wrap up a final loose end! I used |
Maybe I'm missing something but I can't get the sourcemaps to generate either as a separate file or inline. I'm using the latest webpack (4.1.1) and mini-css-extract-plugin (0.2.0).
Relevant webpack module rules:
...and plugin:
Do I need to specify
devtool
property also ?The text was updated successfully, but these errors were encountered: