Skip to content

Commit

Permalink
Merge pull request #40 from F-happy/develop
Browse files Browse the repository at this point in the history
修复在开发模式下无法正确识别 scss 的问题
  • Loading branch information
F-happy authored Nov 30, 2016
2 parents 2f5a839 + e799a30 commit 46530be
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

> 以下带有 [update] 前缀的为不兼容更新,需要注意。而带有 [fix] 前缀的更新为异常修复,建议尽快更新。
## 3.2.1

* [fix] 修复在开发模式下无法正确识别 scss 的问题。

## 3.2.0

* [update] 现在提供原生 css 和 ES5 代码的支持。
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wishbao",
"version": "3.2.0",
"version": "3.2.1",
"description": "This project is to nuts gulp workflow.",
"main": "./bin/nuts.js",
"scripts": {
Expand Down
7 changes: 3 additions & 4 deletions tasks/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ const fs = require('fs'),
webConfig = require('../utils/get_wp_config')('dev'),
config = require(path.resolve(process.cwd(), 'nuts.config.json'));
let devDirList = [],
styleType = 'css';
styleType = config.styleType === 'scss' ? 'scss' : 'css';

module.exports = (proName, port) => {

let devDir = `${config.sourceDir}/${proName}`,
outDir = `${config.devDir}/${proName}`,
styleType = config.styleType === 'scss' ? 'scss' : 'css';
let devDir = `${config.sourceDir}/${proName}`,
outDir = `${config.devDir}/${proName}`;

server({name: proName, port: port}, () => {
//初始化函数
Expand Down

0 comments on commit 46530be

Please sign in to comment.