diff options
Diffstat (limited to 'client/config/webpack.common.js')
-rw-r--r-- | client/config/webpack.common.js | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/client/config/webpack.common.js b/client/config/webpack.common.js index a81bca9d2..61347dba2 100644 --- a/client/config/webpack.common.js +++ b/client/config/webpack.common.js | |||
@@ -135,7 +135,13 @@ module.exports = function (options) { | |||
135 | test: /\.(sass|scss)$/, | 135 | test: /\.(sass|scss)$/, |
136 | use: [ | 136 | use: [ |
137 | 'css-to-string-loader', | 137 | 'css-to-string-loader', |
138 | 'css-loader?sourceMap', | 138 | { |
139 | loader: 'css-loader', | ||
140 | options: { | ||
141 | sourceMap: true, | ||
142 | importLoaders: 1 | ||
143 | } | ||
144 | }, | ||
139 | 'resolve-url-loader', | 145 | 'resolve-url-loader', |
140 | { | 146 | { |
141 | loader: 'sass-loader', | 147 | loader: 'sass-loader', |
@@ -174,7 +180,7 @@ module.exports = function (options) { | |||
174 | */ | 180 | */ |
175 | { | 181 | { |
176 | test: /\.(jpg|png|gif)$/, | 182 | test: /\.(jpg|png|gif)$/, |
177 | use: 'file-loader' | 183 | use: 'url-loader' |
178 | } | 184 | } |
179 | 185 | ||
180 | ] | 186 | ] |
@@ -256,10 +262,10 @@ module.exports = function (options) { | |||
256 | */ | 262 | */ |
257 | // Used by embed.html | 263 | // Used by embed.html |
258 | new CopyWebpackPlugin([ | 264 | new CopyWebpackPlugin([ |
259 | { | 265 | // { |
260 | from: 'src/assets', | 266 | // from: 'src/assets', |
261 | to: 'assets' | 267 | // to: 'assets' |
262 | }, | 268 | // }, |
263 | { | 269 | { |
264 | from: 'src/standalone', | 270 | from: 'src/standalone', |
265 | to: 'standalone' | 271 | to: 'standalone' |