Skip to content

Commit

Permalink
Fixes sass sourcemaps
Browse files Browse the repository at this point in the history
  • Loading branch information
nikbabchenko committed Apr 6, 2018
1 parent 279abb7 commit 614002a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
1 change: 0 additions & 1 deletion config/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = {
// parser: 'sugarss',
sourceMap: true,
plugins: {
autoprefixer: {
browsers: ['last 3 versions', 'ie 11']
Expand Down
14 changes: 11 additions & 3 deletions config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ const config = {
{
loader: 'postcss-loader',
options: {
config: { path: postcssConfig }
config: { path: postcssConfig },
sourceMap: isDev,
}
}
],
Expand All @@ -113,16 +114,23 @@ const config = {
loader: 'css-loader',
options: {
importLoaders: 1,
sourceMap: isDev
},
},
{
loader: 'postcss-loader',
options: {
config: { path: postcssConfig }
config: {
path: postcssConfig,
},
sourceMap: isDev ? 'inline' : false,
}
},
{
loader: 'sass-loader'
loader: 'sass-loader',
options: {
sourceMap: isDev
}
}
],
})
Expand Down

0 comments on commit 614002a

Please sign in to comment.