Web: Editor: added nextjs
This commit is contained in:
parent
be750d3f6b
commit
1ec56b19de
@ -1,7 +1,16 @@
|
||||
{
|
||||
"presets": ["@babel/preset-react", "@babel/preset-env"],
|
||||
"presets": ["@babel/preset-react", "@babel/preset-env", "next/babel"],
|
||||
"plugins": [
|
||||
"@babel/plugin-transform-runtime",
|
||||
"@babel/plugin-proposal-class-properties"
|
||||
"@babel/plugin-proposal-class-properties",
|
||||
|
||||
[
|
||||
"styled-components",
|
||||
{
|
||||
"ssr": true,
|
||||
"displayName": true,
|
||||
"preprocess": false
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
|
@ -4,14 +4,17 @@
|
||||
"private": true,
|
||||
"homepage": "/products/files/doceditor",
|
||||
"scripts": {
|
||||
"build": "webpack --mode production",
|
||||
"build-old": "webpack --mode production",
|
||||
"build:test": "webpack --env minimize=false --mode production",
|
||||
"build:test.translation": "webpack --env minimize=false hideText=true --mode production",
|
||||
"clean": "shx rm -rf dist",
|
||||
"deploy": "shx --silent mkdir -p ../../build/deploy/products/ASC.Files/editor && shx cp -r dist/* ../../build/deploy/products/ASC.Files/editor",
|
||||
"serve": "serve dist -p 5013",
|
||||
"start": "webpack-cli serve",
|
||||
"start-prod": "webpack --mode production && serve dist -p 5013"
|
||||
"start-old": "webpack-cli serve",
|
||||
"start-prod": "webpack --mode production && serve dist -p 5013",
|
||||
"dev": "next dev -p 5013",
|
||||
"build": "next build",
|
||||
"start-ssr": "yarn build && next start -p 5013"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.15.5",
|
||||
@ -45,6 +48,9 @@
|
||||
"id": "e67be73d-f9ae-4ce1-8fec-1880cb518cb4",
|
||||
"title": "ONLYOFFICE",
|
||||
"dependencies": {
|
||||
"next": "^12.0.8"
|
||||
"cookies-next": "^2.0.3",
|
||||
"next": "^12.0.8",
|
||||
"next-compose-plugins": "^2.2.1",
|
||||
"next-transpile-modules": "^9.0.0"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user