0.0.1 • Published 4 years ago

sass-sourcemap-loader v0.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

Add file:/// to sass sourcemap

How to use ?

npm install sass-sourcemap-loader --dev

Add sass-sourcemap-loader in webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.scss/,
        use: [
          {
            loader: 'style-loader',
          },
          {
            loader: 'css-loader',
            options: {
              sourceMap: true,
            },
          },
          {
            loader: 'sass-sourcemap-loader',
          },
          {
            loader: 'postcss-loader',
            options: {
              sourceMap: true,
              plugins: [],
            },
          },
          {
            loader: 'sass-loader',
            options: {
              sourceMap: true,
            },
          },
        ],
      },
    ],
  },
}

Before use sass-sourcemap-loader

before

Online editing failed.

online-edit-fail

After use sass-sourcemap-loader

before

Online editing success.

online-edit