/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/loader-import-module/css/index.js
15 строк
495 B
Tobias Koppers
fix passing publicPath to `this.importModule`
14 апр 2021, 20:48
14 апр 2021, 20:48
8d3a230
Код
Авторство
О чём код?
import stylesheet from "./stylesheet"; import stylesheet1 from "./stylesheet?1"; import otherStylesheet from "./other-stylesheet"; it("should be able to use build-time code", () => { expect(stylesheet).toBe( 'body { background: url("/public/assets/file.png"); color: #f00; }' ); expect(stylesheet1).toBe( 'body { background: url("/public/assets/file.png?1"); color: #f00; }' ); expect(otherStylesheet).toBe( 'body { background: url("/other/assets/file.jpg"); color: #0f0; }' ); });