@ -15,6 +15,8 @@ const target = process.env.NEXT_PUBLIC_DEV_SERVER_HOST;
module.exports = withLess(
withTM({
// 静态导出配置
output: 'export',
lessLoaderOptions: {
lessOptions: {
modifyVars: {
@ -5,7 +5,7 @@
"dev": "next dev -H 0.0.0.0 -p 4121",
"build": "next build",
"start": "next start",
"export": "next export",
"export": "next build && next export",
"eslint": "eslint src/ --ext .ts,.tsx,.js,.jsx --fix --cache",
"stylelint": "stylelint 'src/**/*.less' 'src/**/*.css' --fix --cache",
"pre-commit": "pretty-quick --staged && npm run eslint && npm run stylelint"