Skip to content

Commit 96962a7

Browse files
committed
fix(server): 修复extend config导致sass loader不生效
1 parent 64deff2 commit 96962a7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/commands/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ exports.run = function (options) {
211211

212212
if (project.check()) {
213213
compiler = project.getServerCompiler(function (config) {
214-
var nextConfig = extend(true, {}, config);
214+
var nextConfig = extend({}, config);
215215
Object.keys(config.entry).map(function (entryKey) {
216216
var entryItem = config.entry[entryKey];
217217

lib/models/Config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ var Config = function () {
113113
if ((typeof compileConfig === 'undefined' ? 'undefined' : _typeof(compileConfig)) === 'object') {
114114
nextConfig = compileConfig;
115115
} else if (typeof compileConfig === 'function') {
116-
nextConfig = compileConfig(extend(true, {}, _this2._config)) || {};
116+
nextConfig = compileConfig(extend({}, _this2._config)) || {};
117117
}
118118

119119
// 处理context

src/commands/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ exports.run = (options) => {
195195

196196
if (project.check()) {
197197
compiler = project.getServerCompiler(function(config) {
198-
let nextConfig = extend(true, {}, config)
198+
let nextConfig = extend({}, config)
199199
Object.keys(config.entry).map((entryKey) => {
200200
const entryItem = config.entry[entryKey]
201201

src/models/Config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class Config {
9999
if(typeof compileConfig === 'object') {
100100
nextConfig = compileConfig
101101
} else if (typeof compileConfig === 'function') {
102-
nextConfig = compileConfig(extend(true, {}, this._config)) || {};
102+
nextConfig = compileConfig(extend({}, this._config)) || {};
103103
}
104104

105105
// 处理context

0 commit comments

Comments
 (0)