mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[feature] Photoswipe gallery (#740)
* implement photoswipe galleries * dependency wrangling * photoswipe-dynamic-caption plugin
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user