Skip to content

Commit

Permalink
修复引号后直接跟匿名函数,导致出错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ystarlongzi committed Apr 17, 2017
1 parent d3f6a9f commit 8636b39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fis3-hook-css-modules",
"version": "1.0.4",
"version": "1.0.5",
"description": "基于fis3的css模块化方案",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions src/listeners.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ module.exports = function (conf) {

case 'inline':
// 添加依赖标记. 否则在更新 css 文件后, 不会触发 livereload
str += '"' + lang.info.wrap(lang.dep.wrap(value)) + '"';
str += '"' + lang.info.wrap(lang.dep.wrap(value)) + '";';
str += css2js.processCss(scopedCss.injectableSource);
break;

Expand All @@ -217,7 +217,7 @@ module.exports = function (conf) {
file.extras.derived = file.extras.derived || [];
file.extras.derived.push(newFile);

str += '"' + lang.info.wrap(lang.dep.wrap(value)) + '"';
str += '"' + lang.info.wrap(lang.dep.wrap(value)) + '";';
str += 'require(' + quote + (newFile.moduleId || newFile.id) + quote + ')';
break;
}
Expand Down

0 comments on commit 8636b39

Please sign in to comment.