如何使用节点和羽毛笔?

时间:2016-05-25 10:41:43

标签: javascript node.js express quill

我想在我的express.js应用中尝试quill。所以,我可以使用

安装它
server {
    listen       80;
    server_name  domain.com;
    autoindex on;

    root   /var/www/server;
    index index.php index.html index.htm;

    location / {
        try_files $uri $uri/ /index.php;

        location = /index.php {
              fastcgi_pass unix:/var/run/php5-fpm.sock;
              fastcgi_param  SCRIPT_FILENAME /var/www/server$fastcgi_script_name;
              include        fastcgi_params;
        }
    }

    location ~ \.php$ {
        return 444;
    }


    location ~* ^/(assets|files|robots\.txt) { }
    location ~ /\.ht {
        deny        all;
    }
}

如何将其与节点实际使用?

我真的不明白为什么这是一个节点包,因为它基本上只包含.css和.js文件,并且可以直接包含在模板中,这对我来说也是最有意义的,因为&# 39;富文本编辑器生效的地方。

1 个答案:

答案 0 :(得分:0)

我已经看过一个帖子,其中一个quill(jhchen)的创造者被问到这个问题。我希望能帮助别人。

问题:

  

那么npm install命令是什么?   几乎现在人们构建的每个应用程序都使用Browserify或Webpack在浏览器呈现之前构建内容,如果你甚至不能()它,那么你如何使用它呢?

答案:

  

您绝对需要Quill才能使用Webpack或Browserify进行构建。你不能在Node.js REPL中运行Quill。

来源:https://github.com/quilljs/quill/issues/1194