2015-09-20 49 views
4

我需要使用Express.js,jade和更少的应用程序创建应用程序,并且想要使用webpack捆绑应用程序。 整个互联网充满了关于设置webpack的反应文章,但没有人将它设置为模块化的JavaScript通常的快速应用程序。如何为express.js应用程序设置webpack,不反应应用程序?

还有有关如何从.LESS文件

让common.css请帮助我没有一个人的文章!

+0

出于好奇,你在寻找webpack表达自己缺乏什么好处? –

回答

0
  • https://github.com/webpack/less-loader
  • https://github.com/webpack/jade-loader

    require("jade!./template.jade"); 
    // => uses the "jade-loader" (that is installed from npm to "node_modules") 
    // to transform the file "template.jade" 
    
    require("!style!css!less!bootstrap/less/bootstrap.less"); 
    // => the file "bootstrap.less" in the folder "less" in the "bootstrap" 
    // module (that is installed from github to "node_modules") is 
    // transformed by the "less-loader". The result is transformed by the 
    // "css-loader" and then by the "style-loader". 
    

单独装填!

退房在的WebPack文档有关如何设置捆扎处理例的配置API。这只是一个定义你的入口点和你的目的地的问题。

如果您正在寻找自动刷新的webpack dev服务器API。

+0

我已阅读关于装载机 - 他们没有问题。 问题是从.less文件中获取common.css和其他chunk css – Vadim

相关问题