Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在 wepy.config.js 文件中配置的 output 对 .js 文件不生效 #145

Closed
brucx opened this issue May 17, 2017 · 4 comments
Closed

在 wepy.config.js 文件中配置的 output 对 .js 文件不生效 #145

brucx opened this issue May 17, 2017 · 4 comments

Comments

@brucx
Copy link
Contributor

brucx commented May 17, 2017

.js 文件仍然会输出到 /dist 目录

wepy-cli 版本 1.5.4

@Gcaufy
Copy link
Collaborator

Gcaufy commented May 17, 2017

dist 属性

@brucx
Copy link
Contributor Author

brucx commented May 17, 2017

https://wepyjs.github.io/wepy/#/?id=wepyconfigjs-%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6%e8%af%b4%e6%98%8e

文档里写的是 output ,测试过 dist无效啊

let prod = process.env.NODE_ENV === 'production';

module.exports = {
    'output': 'dist',
    'source': 'src',
    'wpyExt': '.wpy',
    'compilers': {
        less: {
            'compress': true
        },
        /*sass: {
            'outputStyle': 'compressed'
        },*/
        babel: {
            'presets': [
                'es2015',
                'stage-1'
            ],
            'plugins': [
                'transform-export-extensions',
                'syntax-export-extensions',
                'transform-runtime'
            ]
        }
    },
    'plugins': {
    }
};

Gcaufy added a commit that referenced this issue May 18, 2017
@Gcaufy
Copy link
Collaborator

Gcaufy commented May 18, 2017

已提交commit, 下个版本会修复这个问题,如果急需解决这个问题的话就参考这个commit 修改一下对应文件即可。

@brucx
Copy link
Contributor Author

brucx commented May 22, 2017

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants