We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1be7593 commit 1bd81c9Copy full SHA for 1bd81c9
test/loaderTest.js
@@ -41,6 +41,14 @@ describe("loader", function() {
41
'module.exports = "<h3 customattr=\\"\\">#{number} {customer}</h3> <p> {title} </p> <img src=\\"\" + require("./image.png") + "\\\"/>";'
42
);
43
});
44
+ // https://github.com/webpack/webpack/issues/752
45
+ it("should not remove attributes by default", function() {
46
+ loader.call({
47
+ minimize: true
48
+ }, '<input type="text" />').should.be.eql(
49
+ 'module.exports = "<input type=\\"text\\"/>";'
50
+ );
51
+ });
52
it("should preserve comments", function() {
53
loader.call({
54
minimize: true,
0 commit comments