@lightscale/webpack-config 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +10 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -116,7 +116,12 @@ export const makeConfig = (env, argv, options) => {
116
116
  const isProd = argv.mode === 'production',
117
117
  isDev = argv.mode === 'development',
118
118
  isWatch = typeof argv.watch !== 'undefined' && argv.watch === true,
119
- {paths, entry, plugins = [], manifestCustomize = (e) => e} = options;
119
+ {paths,
120
+ entry,
121
+ plugins = [],
122
+ manifestCustomize = (e) => e,
123
+ sassOptions = {}
124
+ } = options;
120
125
 
121
126
  return {
122
127
  entry,
@@ -204,7 +209,10 @@ export const makeConfig = (env, argv, options) => {
204
209
  postcssOptions: postCssConfig
205
210
  }
206
211
  },
207
- 'sass-loader',
212
+ {
213
+ loader: 'sass-loader',
214
+ options: sassOptions,
215
+ },
208
216
  ],
209
217
  },
210
218
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightscale/webpack-config",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Basic webpack config with js babel, postcss, scss, svg",
5
5
  "main": "index.js",
6
6
  "auther": "Sam Light",