mirror of https://github.com/webpack/webpack.git
14 lines
527 B
JavaScript
14 lines
527 B
JavaScript
import { component, dependency, dependency2 } from "./component";
|
|
component(dependency, dependency2);
|
|
|
|
// 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, "");
|
|
} |