These are chat archives for QingWei-Li/cooking

1st
Jul 2016
Charlie
@xyhp915
Jul 01 2016 04:23
blob
打包了代码 有报错
cinwell.li
@QingWei-Li
Jul 01 2016 04:24
build 过程没报错么?
@xyhp915
@xyhp915 webpack/webpack#959 webpack 的锅,临时的措施入口文件传数组
也就是
entry: {
  app: [‘./src/index.js']
}
Charlie
@xyhp915
Jul 01 2016 04:28
嗯 是个webpack的锅
watch OK build OK
cinwell.li
@QingWei-Li
Jul 01 2016 04:29
watch 我有处理 entry
build 忘记弄了
下版本我补上
Charlie
@xyhp915
Jul 01 2016 04:30
:+1: 即使通讯工具还是高效! 怎么不用slack
cinwell.li
@QingWei-Li
Jul 01 2016 04:31
Gitter 和 GitHub 整合的好一些嘛
Charlie
@xyhp915
Jul 01 2016 04:31
倒也是 ....
Charlie
@xyhp915
Jul 01 2016 04:40
  entry: {
    app: ['./src/main.js']
  },
问题还是在
本想问题简单些 还是踩雷了...
cinwell.li
@QingWei-Li
Jul 01 2016 05:04
@xyhp915
没成功么?
Charlie
@xyhp915
Jul 01 2016 05:05
没成功
cinwell.li
@QingWei-Li
Jul 01 2016 05:05
同样的错?
Charlie
@xyhp915
Jul 01 2016 05:05
blob
cinwell.li
@QingWei-Li
Jul 01 2016 05:08
看起来我以前遇到过 都还有搜索记录 只是忘记怎么解决的了 😂
我找找看 😂
Charlie
@xyhp915
Jul 01 2016 05:09
我也Google看看
cinwell.li
@QingWei-Li
Jul 01 2016 05:09
你的 commonChunk 怎么配置的
Charlie
@xyhp915
Jul 01 2016 05:10
这个就是 cooking 模板生成的
// production clean: true, hash: true, sourceMap: true, chunk: [{ name: 'vendor', minChunks: function(module, count) { // any required modules inside node_modules are extracted to vendor return ( module.resource && /\.js$/.test(module.resource) && module.resource.indexOf( path.join(__dirname, 'node_modules') ) === 0 ); } }, { // extract webpack runtime and module manifest to its own file in order to // prevent vendor hash from being updated whenever app bundle is updated name: 'manifest', chunks: ['vendor'] }],
  // production
  clean: true,
  hash: true,
  sourceMap: true,
  chunk: [{
    name: 'vendor',
    minChunks: function(module, count) {
      // any required modules inside node_modules are extracted to vendor
      return (
        module.resource &&
        /\.js$/.test(module.resource) &&
        module.resource.indexOf(
          path.join(__dirname, 'node_modules')
        ) === 0
      );
    }
  }, {
    // extract webpack runtime and module manifest to its own file in order to
    // prevent vendor hash from being updated whenever app bundle is updated
    name: 'manifest',
    chunks: ['vendor']
  }],
cinwell.li
@QingWei-Li
Jul 01 2016 05:11
🌚 我试试
Charlie
@xyhp915
Jul 01 2016 05:12
🌝
cinwell.li
@QingWei-Li
Jul 01 2016 05:13
奇怪 默认的模板 build 后的项目能跑起来
Charlie
@xyhp915
Jul 01 2016 05:17
我引用有不少外部模块,样式的,vue组件的,es6的.. 可能问题出在这儿
我再看看 谢谢 🌚 🌝
cinwell.li
@QingWei-Li
Jul 01 2016 05:18
估计是 commonChunk 配置的问题,我直接拷的 vue 官方的 webpack 模板里的配置 🌚
你去掉 chunk 的配置看看能不能跑起来
Charlie
@xyhp915
Jul 01 2016 05:19
我试试
去掉chunk可以
cinwell.li
@QingWei-Li
Jul 01 2016 05:22
🌚 估计是哪个包出了问题吧
不知道了 也可能是 chunk 配置的问题
Charlie
@xyhp915
Jul 01 2016 05:23
哎 还是要入深点webpack 🌚
谢谢了 :+1:
cinwell.li
@QingWei-Li
Jul 01 2016 05:24
🌚
Charlie
@xyhp915
Jul 01 2016 05:26
看样子你肯定为这个表情设置了快捷键!
cinwell.li
@QingWei-Li
Jul 01 2016 05:26
啊哈哈哈哈 必须的
Charlie
@xyhp915
Jul 01 2016 05:28
饿了么前端文化精髓 🌚 🌝 ,值得赞 :+1: :+1: