Replies: 7 comments 2 replies
-
In the meanwhile how DO you build the CSP version yourself? |
Beta Was this translation helpful? Give feedback.
-
So this was a discussion, turned into an issue, that was closed and moved into a new discussion?? In any case, I ran into the same issue:
|
Beta Was this translation helpful? Give feedback.
-
Yeah i feel like there has to be something missing here. If it's expected for developers to build this themselves that's fine but it'd be nice if the documentation made this clear.. |
Beta Was this translation helpful? Give feedback.
-
I got really confused by this as well so have made a PR updating the docs (#2619). FYI there are also a lot of people asking for this in #237. |
Beta Was this translation helpful? Give feedback.
-
I made a build for myself and thought I’d share in case it helps others. It’s from commit d49a0b0, here is a ZIP: alpinejs-csp-3.0.0-alpha.0.tgz.zip Commands I ran to get thisgit clone [email protected]:alpinejs/alpine.git
cd alpine
nvm use 16
npm install
npm run build
cd packages/csp
npm pack --loglevel notice 2>&1 >/dev/null | sed -e 's/^npm notice //' Logs of `npm pack`
I’ve also published it to npm as @thibaudcolas/alpinejs-csp-build. Here is a CodePen with it up and running: https://codepen.io/thibaudcolas/pen/qBVdoXp. |
Beta Was this translation helpful? Give feedback.
-
Adding links to all the relevant threads on this for future reference: |
Beta Was this translation helpful? Give feedback.
-
Is there any updates regarding the npm Content Security Policy (CSP) related issues of alpinejs |
Beta Was this translation helpful? Give feedback.
-
Discussed in #1929
Originally posted by tomb1n0 August 10, 2021
First of all, thanks for alpine - i'm absolutely loving using it in combination with blade components and inside livewire!
As far as I can see the CSP version of alpine isn't up on NPM, howeve plugins like intersect and persist are.
Is there any reason for this or is it expected that developers should build the CSP version themselves? if this is the case the documentation doesn't make this clear :(
Beta Was this translation helpful? Give feedback.
All reactions