我一直在开发我现有的项目,并且第一次使用以下方式构建生产:
"dependencies": {
"promise-polyfill": "^6.0.2",
"semantic-ui-react": "^0.63.1",
"whatwg-fetch": "^2.0.1"
},
"devDependencies": {
"babel-core": "^6.4.0",
"babel-jest": "^18.0.0",
"babel-loader": "^6.2.8",
"babel-plugin-recharts": "^1.1.0",
"babel-preset-es2015": "^6.18.0",
"babel-preset-react": "^6.16.0",
"babel-preset-stage-0": "^6.16.0",
"css-loader": "^0.26.1",
"extract-text-webpack-plugin": "^1.0.1",
"file-loader": "^0.9.0",
"gulp-autoprefixer": "^3.1.1",
"jest": "^18.0.0",
"node-sass": "^4.1.1",
"postcss-loader": "^1.2.0",
"react": "^15.4.1",
"react-dom": "^15.4.1",
"react-hot-loader": "^1.3.1",
"react-router": "^3.0.0",
"react-test-renderer": "^15.4.1",
"recharts": "^0.20.0",
"sass-loader": "^4.0.2",
"semantic-ui": "^2.2.6",
"style-loader": "^0.13.0",
"url-loader": "^0.5.7",
"webpack": "^1.14.0",
"webpack-dev-server": "^1.16.2",
"worker-loader": "^0.7.1"
}
现在我在src中有的字体文件,图像和json文件(及其目录)没有被复制到dist文件夹中。如果我手动添加它们,它可以工作,但我不能每次都这样做。我是否以错误的方式添加这些文件?我是否需要指定应该复制的地方?我对此缺少什么? angular-cli.json没有修改它的开箱即用。
ng build --prod