-
Notifications
You must be signed in to change notification settings - Fork 11
AWS Amplify
Sokichi Fujita edited this page May 11, 2020
·
7 revisions
- Install Amplify modules.
npm install --save aws-amplify aws-amplify-react
Install style-loader
abd css-loader
for aws-amplify-react which is React components of AWS Amplify.
npm install --save-dev style-loader css-loader
- Add configuration of
style-loader
andcss-loader
which are used in aws-amplify-react.
module: {
rules: [
{
test: /.(ts|tsx|js|jsx)$/,
exclude: [path.resolve(__dirname, "node_modules")],
loader: "babel-loader"
},
{
test: /\.css$/,
use: ["style-loader", "css-loader"] //Please use this order.
}
]
},
- Currently
amplify-cli
has a bug of the GraphQL code generation. Please rename the directoryapp
withsrc
and related configuration ofpackage.json
andwebpack.common.js
.