Skip to content

添加换行支持、传入参数为普通js对象支持、处理图片打包输出[object Module]问题 #40

Description

@aiyoudiao

您好
我这边对您的项目做了少许变动,添加换行支持以及ES6模板字符串支持,目前是可以换行了,但是好像不能任意的换多行,我觉得是正则表达式需要优化。传入的数据不再是不再是完全的json,普通的js对象也行。
然后去掉了自带的file-loader,因为它在webpack 4.43.0 和 nodejs 12.18.2中使用时,页面中引入图片会出bug,输入的内容不是打包后的图片地址,而是一个[object Module],这个我处理一下,也处理了require时包含default属性的问题。
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions