瀏覽代碼

Site: update output filename (#837)

cinwell.li 8 年之前
父節點
當前提交
fea6225770
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      build/cooking.demo.js

+ 2 - 0
build/cooking.demo.js

@@ -90,4 +90,6 @@ if (process.env.NODE_ENV === 'production') {
 }
 
 cooking.add('vue.preserveWhitespace', false);
+cooking.add('output.chunkFilename', 'element.[id].[chunkhash:7].js');
+cooking.add('output.filename', 'element.[name].[chunkhash:7].js');
 module.exports = cooking.resolve();