Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Nov 16 2017 07:10
    minerchow edited #202
  • Nov 16 2017 07:10
    minerchow opened #202
  • Nov 14 2017 01:28
    dondevi opened #201
  • Nov 08 2017 07:44
    earlymeme opened #200
  • Nov 08 2017 07:39
    earlymeme closed #199
  • Nov 08 2017 07:26
    earlymeme opened #199
  • Nov 06 2017 09:31
    phaibin opened #198
  • Oct 26 2017 05:53

    QingWei-Li on v1.5.5

    (compare)

  • Oct 26 2017 05:53
    QingWei-Li closed #196
  • Oct 26 2017 05:53

    QingWei-Li on master

    fix: upgrade extract-text-webpa… v1.5.5 (compare)

  • Oct 25 2017 07:34
    leewind opened #197
  • Oct 23 2017 04:09
    tiupcn edited #196
  • Oct 23 2017 04:09
    tiupcn opened #196
  • Oct 17 2017 02:08

    QingWei-Li on v1.5.4

    fix: extract-text-webpack-plugi… v1.5.4 (compare)

  • Oct 17 2017 02:08
    QingWei-Li closed #187
  • Oct 17 2017 02:08

    QingWei-Li on master

    fix: extract-text-webpack-plugi… v1.5.4 (compare)

  • Oct 12 2017 12:00
    shaoxiong789 opened #195
  • Sep 28 2017 07:58
    deepkolos opened #194
  • Sep 28 2017 07:58
    deepkolos opened #193
  • Sep 12 2017 08:28
    KevinLongLong edited #192
Layne
@gengxuelei
argvEnv 是pc或者wx或者h5,三个项目
cinwell.li
@QingWei-Li
{
    entry: {
        page1: "./page1",
        page2: ["./entry1", "./entry2"]
    },
    output: {
        // Make sure to use [name] or [id] in output.filename
        //  when using multiple entry points
        filename: "[name].bundle.js",
        chunkFilename: "[id].bundle.js"
    }
}
chunkFilename 用这个
Layne
@gengxuelei
哦哦,哈哈,这个问题困扰好多天了
cinwell.li
@QingWei-Li
。。。。。。搜一下就搜到了。。
Layne
@gengxuelei
// isProd && cooking.add('output.filename', argvEnv + '/js/[name].[hash:7].js');

let output = {
  filename: argvEnv + '/js/[name].[hash:7].js',
  chunkFilename: argvEnv + '/js/[id].[hash:7].js'
};

isProd && cooking.add('output', output);
所以这样是吗
cinwell.li
@QingWei-Li
。。。。。。。。。。你这样就把 output 所有内容都覆盖了
Layne
@gengxuelei
好的,再改下
isProd && cooking.add('output.filename', argvEnv + '/js/[name].[hash:7].js');
isProd && cooking.add('output.chunkFilename', argvEnv + '/js/[id].[hash:7].js');
听君一席话,胜读十年书
D.B-Murphy
@db-murphy
cooking-cli 问题求解
cooking create的时候报错
No local gulp install found in /Users/apple/.cooking/node_modules/slush-cooking-vue
我去看了 确实没有gulp
package.json都没申明
litao
@a1029563229
大家好 问一个问题
webpack 可以通过 webpack-dev-server --host xx.xxx.xx.xx 来指定公网ip访问
cooking如何指定Host来通过公网ip访问呢
cinwell.li
@QingWei-Li
devServer.host @a1029563229
litao
@a1029563229
已经解决了 谢谢 @QingWei-Li 忘了做端口映射了
haoxutong
@haoxutong
按照教程使用cooking watch 的时候报错终止啦 :两个一个sass 安装指定版本资源找不到,一个The Windows SDK version 8.1 was no found 请教下如何解决?
majianxiong
@majianxiong
// CommonJS
const Actionsheet = require('mint-actionsheet').default;
这后面,为何有一个default
const Actionsheet = require('mint-actionsheet') 这样的写法不是更好吗?
wushuai0413
@wushuai0413
有人吗? 问个问题,装cooking的时候报Module '/usr/local/lib/node_modules/cooking-cli/node_modules/url/url.js' is not a loader这个错误了
求解,在线等,急急急!
Alfred Liu
@FlappyHeart
vue里有的文件中 import lodash会调用cooking路径下的缓存
有人遇到过吗
有的正常,有的会调用
Users/xxxx/.cooking/~/lodash/dist/lodash.js?xxxx
rainwalker
@rainwalkerhu
大家好 。我有两个配置文件 这是我package.json文件的配置、"scripts": {
"dev": "cooking watch -c ./cooking.conf.js",
"dist": "cooking build -p",
"deploy": "cooking build -c ./src/config/cooking.config.prod.js --no-color",
"mock": "./node_modules/.bin/json-server --watch mock/db.json --routes mock/routes.json --port 9090",
"mockdev": "npm run mock & npm run dev"
},
现在的问题是执行完npm run deploy 后npm run dev
报错
请问怎么配置两个配置文件 。一个开发环境一个生产环境
HadiChan
@HadiChen
blob
安装webpack2有个文件404
yuexing0921
@yuexing0921
vue里面的csp如何解决呀?
现在在插件内无法使用
vue
月影
@seekwe
使用extract-text-webpack-plugin之后不能用异步加载路由?
yuexing0921
@yuexing0921
@QingWei-Li 我给你发了一个邮件
HadiChan
@HadiChen
blob
问一下,为什么我不能以render这样返回,而饿了么竟然可以
@yuchonghua
@QingWei-Li
您好
blob
同问
@yuchonghua
blob
@Leopoldthecoder 为什么您们的可以打包成为render,我用cooking却没有做到
可以请教下吗
Andrew Yip
@yipcma
hi guys, wonder if anyone's around, got a question on using vue-router with cooking. see ElemeFE/cooking#179
Layne
@gengxuelei
请问vux的项目,怎么通过cooking配置vux-ui插件?
well
@well-monkey
This is an issue with the slush-cooking-vue generator