mirror of https://github.com/webpack/webpack.git
14 lines
483 B
JavaScript
14 lines
483 B
JavaScript
const { component } = require("./component");
|
|
component()
|
|
|
|
// https://github.com/webpack/webpack/issues/18961
|
|
// https://github.com/jantimon/reproduction-webpack-css-order
|
|
it("keep consistent css order", function() {
|
|
const fs = __non_webpack_require__("fs");
|
|
let source = fs.readFileSync(__dirname + "/main.css", "utf-8");
|
|
expect(removeComments(source)).toMatchSnapshot()
|
|
});
|
|
|
|
function removeComments(source) {
|
|
return source.replace(/\/\*[\s\S]*?\*\//g, "").replace(/\n/g, "");
|
|
} |