Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

References with query string #414

Open
Lladnari opened this issue Sep 6, 2019 · 1 comment
Open

References with query string #414

Lladnari opened this issue Sep 6, 2019 · 1 comment
Projects

Comments

@Lladnari
Copy link

Lladnari commented Sep 6, 2019

Any reference that includes a query string does not work as uncss, or support modules, can not find the file. Using

link href="../styles/main.min.css?cb=9766903" rel="stylesheet" media="all"

uncss will look for the file called main.min.css?cb=9766903.

Error:
Error: Could not load script: "file:///E:/websites/__t/prod/scripts/main.min.js?cb=9766903"
at onErrorWrapped (E:\websites__t\node_modules\uncss\node_modules\jsdom\lib\jsdom\browser\resources\per-document-resource-loader.js:38:19)
at Object.check (E:\websites__t\node_modules\uncss\node_modules\jsdom\lib\jsdom\browser\resources\resource-queue.js:72:23)
at request.then.catch.err (E:\websites__t\node_modules\uncss\node_modules\jsdom\lib\jsdom\browser\resources\resource-queue.js:124:14) { [Error: ENOENT: no such file or directory, open 'E:\websites__t\prod\scripts\main.min.js?cb=9766903']
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'E:\websites\__t\prod\scripts\main.min.js?cb=9766903' }
Error: Could not load script: "file:///E:/websites/__t/prod/scripts/main.min.js?cb=9766903"
at onErrorWrapped (E:\websites__t\node_modules\uncss\node_modules\jsdom\lib\jsdom\browser\resources\per-document-resource-loader.js:38:19)
at Object.check (E:\websites__t\node_modules\uncss\node_modules\jsdom\lib\jsdom\browser\resources\resource-queue.js:72:23)
at request.then.catch.err (E:\websites__t\node_modules\uncss\node_modules\jsdom\lib\jsdom\browser\resources\resource-queue.js:124:14) { Error: request canceled by user
at Promise.promise.abort (E:\websites__t\node_modules\uncss\node_modules\jsdom\lib\jsdom\browser\resources\resource-loader.js:50:21)
at RequestManager.close (E:\websites__t\node_modules\uncss\node_modules\jsdom\lib\jsdom\browser\resources\request-manager.js:25:21)
at Window.close (E:\websites__t\node_modules\uncss\node_modules\jsdom\lib\jsdom\browser\Window.js:491:29)
at pages.forEach (E:\websites__t\node_modules\uncss\src\uncss.js:223:49)
at Array.forEach ()
at cleanup (E:\websites__t\node_modules\uncss\src\uncss.js:223:19) isAbortError: true }

Screenshot of code:
uncss query string issue 2019-09-06 16_07_47

@RyanZim RyanZim transferred this issue from uncss/postcss-uncss Sep 7, 2019
@RyanZim
Copy link
Member

RyanZim commented Sep 7, 2019

PR welcome to fix.

@giakki giakki added this to To do in To-do board via automation Feb 13, 2020
@giakki giakki moved this from To do to Done in To-do board Feb 13, 2020
@giakki giakki moved this from Done to In progress in To-do board Feb 13, 2020
@giakki giakki moved this from In progress to Done in To-do board Feb 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
To-do board
  
Done
Development

No branches or pull requests

2 participants