What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-01 07:28:02
tailwind react
1. npx create-react-app . 2. npm i -D tailwindcss postcss-cli autoprefixer or npm install tailwindcss@latest postcss@latest autoprefixer@latest //postcss - transform our compile css // autoprefixer - set vendor prefixes within our css automatically whe... Add solution -
Javascript 2021-09-01 07:22:02
dockerfile nodejs
FROM node:10-alpine RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app WORKDIR /home/node/app COPY package*.json ./ USER node RUN npm install COPY --chown=node:node . . EXPOSE 8080 CMD [ "node", "i... Add solution -
Shell/Bash 2021-08-28 05:41:02
install boostrap react
//1.run following commnad in cmd: npm install bootstrap --save //you can now use bootstrap component. example: import { Button } from 'react-bootstrap'; //2.or add this to index.js: <link rel="stylesheet" href="https://cdn.jsdelivr... Add solution -
Shell/Bash 2021-08-28 01:55:02
html webpack plugin
//installation npm install --save-dev html-webpack-plugin //configuration var HtmlWebpackPlugin = require('html-webpack-plugin'); var path = require('path'); module.exports = { entry: 'index.js', output: { path: path.resolve(__dirname, './dist')... Add solution