Git Product home page Git Product logo

Comments (4)

liicos avatar liicos commented on August 21, 2024 1

解决了,多谢~ 👍

from san-loader.

Lohoyo avatar Lohoyo commented on August 21, 2024

开发者下午好。
我们尝试复现了该问题,但是发现行内样式在生产模式下也有效,所以,你是否方便提供下能复现该问题的demo?
另外,如果你有兴趣,也可以看下我们用于尝试复现的demo:
https://github.com/Lohoyo/san-loader/tree/issues-24/examples
按照examples文件夹下的README把examples跑起来就可以看到效果。

from san-loader.

liicos avatar liicos commented on August 21, 2024

你好,你们复现的代码我跑不起来 (win10 + node v12.16.2),我把我的问题也精简了一下代码,搞了一个demo:
https://github.com/liicos/san-loader-issues-24

from san-loader.

Lohoyo avatar Lohoyo commented on August 21, 2024

我给你的 demo 提了 1 个 pr,解决办法在这个 pr 里,可以再试试。
问题原因:html-loader 最新版本在生产环境(production)会默认开启 minimize,会导致 san 解析 template 失败,所以使用 html-loader 的时候建议关闭 minimize。详见 san-loader 文档

from san-loader.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.