easy-team/easywebpack

easy build prod报错

js-gpt opened this issue · 2 comments

构建时,easy build test没问题
easy build prod每次都报错,webpack构建到92%时直接异常退出了。

webpack build [===================================================================================== ] 92% (3.0 seconds)%

webpack配置如下:

    entry: {
        'index/index': 'src/index.ts',
    },
    lib: ['vue', 'vuex', 'vue-router', 'vuex-router-sync', 'axios'],
    loaders: {
        less: true,
        babel: false,
        typescript: true,
    },
    alias: {
        assets: 'src/assets',
        components: 'src/components',
        framework: 'src/framework',
        utils: 'src/utils',
        services: 'src/services',
        store: 'src/store',
    },
    plugins: {
        copy: [{
            from: 'src/assets',
            to: 'assets',
        }],
    },
};
z1o commented

easy-team/easywebpack-cli#14
我遇到过类似问题 可以参考下

@song-yunlu @z1o 目前偶然出现,发现是发现 Webpack 编译报错没有抛出来,重新安装依赖看看。easy-team/webpack-tool@f063637