We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
打包时报错,run start没有问题
package.json: { "name": "@icedesign/cms-scaffold", "version": "1.0.0", "description": "该模板内置了丰富的区块,主要适用于类 CMS 管理系统,使用时需要根据需求进行删除和添加", "homepage": "https://alibaba.github.io/ice/scaffold-preview/ice-design-cms.html", "dependencies": { "@antv/data-set": "^0.8.5", "@icedesign/base": "^0.2.0", "@icedesign/container": "^0.1.0", "@icedesign/data-binder": "^0.1.4", "@icedesign/form-binder": "^0.1.4", "@icedesign/icon": "^0.1.1", "@icedesign/img": "^0.1.0", "@icedesign/label": "^0.1.2", "@icedesign/layout": "^0.1.0", "@icedesign/menu": "^0.1.0", "@icedesign/skin": "^0.1.0", "axios": "^0.17.1", "bizcharts": "3.1.0", "classnames": "^2.2.5", "enquire-js": "^0.1.2", "foundation-symbol": "^0.1.0", "immutable": "^3.8.2", "is-hotkey": "^0.1.1", "node-sass": "^4.10.0", "prop-types": "^15.5.8", "react": "^16.5.2", "react-document-title": "^2.0.3", "react-dom": "^16.4.1", "react-loadable": "^5.4.0", "react-router": "^4.3.1", "react-router-dom": "^4.2.2", "slate": "^0.32.5", "slate-plain-serializer": "^0.5.6", "slate-react": "^0.11.6" }, "devDependencies": { "babel-eslint": "^8.0.3", "clean-webpack-plugin": "^0.1.19", "eslint": "^4.13.1", "eslint-config-airbnb": "^16.1.0", "eslint-plugin-babel": "^4.1.1", "eslint-plugin-import": "^2.8.0", "eslint-plugin-jsx-a11y": "^6.0.3", "eslint-plugin-react": "^7.5.1", "extract-text-webpack-plugin": "^3.0.2", "ice-scripts": "^1.7.6", "query-string": "^6.1.0", "react-json-view": "^1.19.1", "style-loader": "^0.23.0", "webpack": "^4.16.4" }, "scripts": { "start": "ice dev", "build": "ice build --hash", "lint": "eslint . --ext '.js,.jsx' --fix" }, "publishConfig": { "registry": "http://registry.npmjs.com", "access": "public" }, "buildConfig": { "theme": "@icedesign/skin", "entry": "src/index.js", "localization": true }, "scaffoldConfig": { "name": "ice-design-cms", "title": "ICE Design CMS", "screenshot": "https://img.alicdn.com/tfs/TB1ai53mqmWBuNjy1XaXXXCbXXa-1920-1080.png" }, "title": "消", "iceworks": { "type": "react", "adapter": "adapter-react-v0" } }
.webpackrc.js.bak
const {resolve} = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CleanWebpackPlugin = require('clean-webpack-plugin'); module.exports = { entry:{ index: './src/index.js', }, output:{ path:resolve('dist'), filename:'[name].[hash].js', }, plugins:[ new CleanWebpackPlugin(['dist']), new HtmlWebpackPlugin({ title:'index', template:resolve('./public/index.html'), filename:'index.html', }), ], }
The text was updated successfully, but these errors were encountered:
gulpjs/gulp#2324 gulp 3 和 node 版本的兼容问题,建议升级 ice-scripts 到 2.x https://ice.work/docs/cli/migrate
Sorry, something went wrong.
No branches or pull requests
问题描述
打包时报错,run start没有问题
.webpackrc.js.bak
错误信息
The text was updated successfully, but these errors were encountered: