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

options 无任何效果,无法清除注释,也无法压缩代码 #43

Closed
leadscloud opened this issue Mar 24, 2019 · 0 comments
Closed

Comments

@leadscloud
Copy link

leadscloud commented Mar 24, 2019

#21 已经描述相同的问题

{
    test: /\.art$/,
    loader: 'art-template-loader',
    options: {
        debug: false,
        minimize: true,
        htmlMinifier: htmlMinifier,
        htmlMinifierOptions: {
            removeAttributeQuotes: true,
            collapseWhitespace: true,
            minifyCSS: true,
            minifyJS: true,
            removeComments: true,
            // automatically merged at runtime: rules.map(rule => rule.test)
            ignoreCustomFragments: []
        },
    }
}

各种尝试,参数各种调,都看不出生成的后的代码有任何变化,没有压缩也没有去掉\n 换行符,空白也没有去掉。

[email protected]

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

1 participant