• 支付宝小程序

    支付宝小程序

    @megalo/targetplatform 设置成 alipaymini-css-extract-plugin 提取文件后缀改成支付宝小程序的 acss

    1. const createMegaloTarget = require( '@megalo/target' )
    2. const compiler = require( '@megalo/template-compiler' )
    3. const MiniCssExtractPlugin = require( 'mini-css-extract-plugin' )
    4. module.exports = {
    5. target: createMegaloTarget( {
    6. compiler,
    7. platform: 'alipay'
    8. } ),
    9. plugins: [
    10. new MiniCssExtractPlugin( {
    11. filename: 'static/css/[name].acss',
    12. } )
    13. // ...
    14. ]
    15. // ... 其他配置
    16. }