Update npm packages
This commit is contained in:
48
package.json
48
package.json
@@ -15,43 +15,43 @@
|
|||||||
"start": "node dist"
|
"start": "node dist"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"animejs": "^3.2.0",
|
"animejs": "^3.2.1",
|
||||||
"compression": "^1.7.4",
|
"compression": "^1.7.4",
|
||||||
"imagesloaded": "^4.1.4",
|
"imagesloaded": "^4.1.4",
|
||||||
"lazysizes": "^5.2.2",
|
"lazysizes": "^5.3.0",
|
||||||
"node-fetch": "^2.6.0",
|
"node-fetch": "^2.6.1",
|
||||||
"normalize.css": "^8.0.1",
|
"normalize.css": "^8.0.1",
|
||||||
"polka": "^1.0.0-next.11",
|
"polka": "^1.0.0-next.11",
|
||||||
"rellax": "^1.12.1",
|
"rellax": "^1.12.1",
|
||||||
"scroll-out": "^2.2.12",
|
"scroll-out": "^2.2.12",
|
||||||
"sirv": "^1.0.6",
|
"sirv": "^1.0.10",
|
||||||
"svelte-lazy": "^1.0.5",
|
"svelte-lazy": "^1.0.8",
|
||||||
"swipe-listener": "^1.2.0"
|
"swipe-listener": "^1.3.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.11.4",
|
"@babel/core": "^7.12.10",
|
||||||
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
||||||
"@babel/plugin-transform-runtime": "^7.11.0",
|
"@babel/plugin-transform-runtime": "^7.12.10",
|
||||||
"@babel/preset-env": "^7.11.0",
|
"@babel/preset-env": "^7.12.11",
|
||||||
"@babel/runtime": "^7.11.2",
|
"@babel/runtime": "^7.12.5",
|
||||||
"@rollup/plugin-alias": "^3.1.1",
|
"@rollup/plugin-alias": "^3.1.1",
|
||||||
"@rollup/plugin-babel": "^5.2.0",
|
"@rollup/plugin-babel": "^5.2.2",
|
||||||
"@rollup/plugin-commonjs": "15.0.0",
|
"@rollup/plugin-commonjs": "17.0.0",
|
||||||
"@rollup/plugin-node-resolve": "^9.0.0",
|
"@rollup/plugin-node-resolve": "^11.0.1",
|
||||||
"@rollup/plugin-replace": "^2.3.3",
|
"@rollup/plugin-replace": "^2.3.4",
|
||||||
"autoprefixer": "^9.8.6",
|
"autoprefixer": "^10.2.1",
|
||||||
"dotenv": "^8.2.0",
|
"dotenv": "^8.2.0",
|
||||||
"node-sass": "^4.14.1",
|
"node-sass": "^5.0.0",
|
||||||
"postcss": "^7.0.32",
|
"postcss": "^8.2.4",
|
||||||
"postcss-load-config": "^2.1.0",
|
"postcss-load-config": "^3.0.0",
|
||||||
"postcss-preset-env": "^6.7.0",
|
"postcss-preset-env": "^6.7.0",
|
||||||
"rollup": "^2.26.5",
|
"rollup": "^2.36.1",
|
||||||
"rollup-plugin-glslify": "^1.2.0",
|
"rollup-plugin-glslify": "^1.2.0",
|
||||||
"rollup-plugin-svelte": "^5.2.3",
|
"rollup-plugin-svelte": "^7.0.0",
|
||||||
"rollup-plugin-terser": "^7.0.0",
|
"rollup-plugin-terser": "^7.0.2",
|
||||||
"sapper": "^0.28.0",
|
"sapper": "^0.28.10",
|
||||||
"svelte": "^3.24.1",
|
"svelte": "^3.31.2",
|
||||||
"svelte-preprocess": "^4.1.1"
|
"svelte-preprocess": "^4.6.1"
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"> 0.5%",
|
"> 0.5%",
|
||||||
|
|||||||
2046
pnpm-lock.yaml
generated
2046
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -8,8 +8,8 @@ import svelte from 'rollup-plugin-svelte'
|
|||||||
import autoPreprocess from 'svelte-preprocess'
|
import autoPreprocess from 'svelte-preprocess'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
import { terser } from 'rollup-plugin-terser'
|
||||||
import glslify from 'rollup-plugin-glslify'
|
import glslify from 'rollup-plugin-glslify'
|
||||||
import sapperConfig from 'sapper/config/rollup'
|
import config from 'sapper/config/rollup'
|
||||||
import { config } from 'dotenv'
|
import { config as dotenv } from 'dotenv'
|
||||||
import pkg from './package.json'
|
import pkg from './package.json'
|
||||||
|
|
||||||
// Define environment and things
|
// Define environment and things
|
||||||
@@ -18,7 +18,7 @@ const dev = mode === 'development'
|
|||||||
const legacy = !!process.env.SAPPER_LEGACY_BUILD
|
const legacy = !!process.env.SAPPER_LEGACY_BUILD
|
||||||
const replaceOptions = {
|
const replaceOptions = {
|
||||||
'process.env.NODE_ENV': JSON.stringify(mode),
|
'process.env.NODE_ENV': JSON.stringify(mode),
|
||||||
'process.env.CONFIG': JSON.stringify(config().parsed)
|
'process.env.CONFIG': JSON.stringify(dotenv().parsed)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Svelte
|
// Svelte
|
||||||
@@ -53,8 +53,8 @@ export default {
|
|||||||
** Client
|
** Client
|
||||||
*/
|
*/
|
||||||
client: {
|
client: {
|
||||||
input: sapperConfig.client.input(),
|
input: config.client.input(),
|
||||||
output: sapperConfig.client.output(),
|
output: config.client.output(),
|
||||||
plugins: [
|
plugins: [
|
||||||
// Javascript
|
// Javascript
|
||||||
replace({
|
replace({
|
||||||
@@ -62,11 +62,12 @@ export default {
|
|||||||
...replaceOptions
|
...replaceOptions
|
||||||
}),
|
}),
|
||||||
svelte({
|
svelte({
|
||||||
dev,
|
|
||||||
preprocess,
|
preprocess,
|
||||||
hydratable: true,
|
emitCss: true,
|
||||||
emitCss: dev,
|
compilerOptions: {
|
||||||
css: css => css.write('static/bundle.css')
|
dev,
|
||||||
|
hydratable: true,
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
aliases,
|
aliases,
|
||||||
glslify(),
|
glslify(),
|
||||||
@@ -96,18 +97,21 @@ export default {
|
|||||||
** Server
|
** Server
|
||||||
*/
|
*/
|
||||||
server: {
|
server: {
|
||||||
input: sapperConfig.server.input(),
|
input: config.server.input(),
|
||||||
output: sapperConfig.server.output(),
|
output: config.server.output(),
|
||||||
plugins: [
|
plugins: [
|
||||||
replace({
|
replace({
|
||||||
'process.browser': false,
|
'process.browser': false,
|
||||||
...replaceOptions
|
...replaceOptions
|
||||||
}),
|
}),
|
||||||
svelte({
|
svelte({
|
||||||
generate: 'ssr',
|
preprocess,
|
||||||
hydratable: true,
|
emitCss: false,
|
||||||
dev,
|
compilerOptions: {
|
||||||
preprocess
|
generate: 'ssr',
|
||||||
|
hydratable: true,
|
||||||
|
dev,
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
aliases,
|
aliases,
|
||||||
glslify(),
|
glslify(),
|
||||||
@@ -128,8 +132,8 @@ export default {
|
|||||||
*/
|
*/
|
||||||
// ...(!dev && {
|
// ...(!dev && {
|
||||||
// serviceworker: {
|
// serviceworker: {
|
||||||
// input: sapperConfig.serviceworker.input(),
|
// input: config.serviceworker.input(),
|
||||||
// output: sapperConfig.serviceworker.output(),
|
// output: config.serviceworker.output(),
|
||||||
// plugins: [
|
// plugins: [
|
||||||
// resolve(),
|
// resolve(),
|
||||||
// replace({
|
// replace({
|
||||||
|
|||||||
@@ -13,12 +13,11 @@
|
|||||||
|
|
||||||
%sapper.base%
|
%sapper.base%
|
||||||
%sapper.head%
|
%sapper.head%
|
||||||
|
%sapper.scripts%
|
||||||
%sapper.styles%
|
%sapper.styles%
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
%sapper.html%
|
%sapper.html%
|
||||||
|
|
||||||
%sapper.scripts%
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user