RickyDan

webpack 开发环境的配置问题

  •  
  •   RickyDan · May 11, 2016 · 2701 views
    This topic created in 3684 days ago, the information mentioned may be changed or developed.

    现在公司有一个 webapp 的项目,想着用 vue 做前端组件化开发。我们后台使用的 laravel 框架,视图文件是放在 views 目录下,首页 index.blade.php 引用了 webpack 合并打包出来的 app.js 文件,问题就是 index 模版引用的 app.js 是每次 build 出来的,在开发环境中我更改了前端组件之后,默认 app.js 是不会重新 build 的,这样子的话开发根本没有效率可言,请问我怎么样能每次更改了前端组件之后都能 build 出 app.js ,这样 index 模版里引用的就是最新的 app.js

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2794 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 12:46 · PVG 20:46 · LAX 05:46 · JFK 08:46
    ♥ Do have faith in what you're doing.