用create-react-app这个脚手架创建的项目webpack.config.js在哪?
新创建的项目里应该是已经配置好了webpack吧,已经可以热更新了,但是找不到webpack.config.js 在哪。
插入了 ant-design-mobile UI库,但是需要修改webpack配置
resolve: {
modulesDirectories: ['node_modules', path.join(__dirname, '../node_modules')],
extensions: ['', '.web.js', '.js', '.json'],
},
和 babel-plugin-import 配置,
// .babelrc
{"plugins": [["import", { "style": "css", "libraryName": "antd-mobile" }]]}
// or webpack config file
webpackConfig.babel.plugins.push(['import', { libraryName: 'antd-mobile', style: 'css' }]);
不知道配置文件在哪里。。。
求大神帮忙~