mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 00:32:25 -05:00
[feature] Photoswipe gallery (#740)
* implement photoswipe galleries * dependency wrangling * photoswipe-dynamic-caption plugin
This commit is contained in:
parent
745f54970d
commit
f2a6ae3ef8
6 changed files with 51 additions and 10 deletions
|
|
@ -53,12 +53,23 @@ const postcssPlugins = [
|
|||
|
||||
const browserifyConfig = {
|
||||
transform: [
|
||||
babelify.configure({
|
||||
presets: [
|
||||
require.resolve("@babel/preset-env"),
|
||||
require.resolve("@babel/preset-react")
|
||||
]
|
||||
}),
|
||||
[
|
||||
babelify.configure({
|
||||
presets: [
|
||||
[
|
||||
require.resolve("@babel/preset-env"),
|
||||
{
|
||||
modules: "cjs"
|
||||
}
|
||||
],
|
||||
require.resolve("@babel/preset-react")
|
||||
]
|
||||
}),
|
||||
{
|
||||
global: true,
|
||||
exclude: /node_modules\/(?!photoswipe-dynamic-caption-plugin)/,
|
||||
}
|
||||
],
|
||||
[require("uglifyify"), {
|
||||
global: true,
|
||||
exts: ".js"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue