Open coding-to-music opened 3 years ago
root@docker-ubuntu-s-1vcpu-2gb-nyc1-01:~/ap/react-webpack-babel-starter# yarn install
yarn install v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@2.3.2: The platform "linux" is incompatible with this module.
info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.13: The platform "linux" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > @hot-loader/react-dom@17.0.1" has incorrect peer dependency "react@17.0.1".
warning "@wojtekmaj/enzyme-adapter-react-17 > react-test-renderer@17.0.1" has incorrect peer dependency "react@17.0.1".
[4/4] Building fresh packages...
Done in 230.80s.
root@docker-ubuntu-s-1vcpu-2gb-nyc1-01:~/ap/react-webpack-babel-starter# yarn run start-dev
yarn run v1.22.10
$ webpack serve --config=configs/webpack/dev.js
ℹ 「wds」: Project is running at http://localhost:8080/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /root/ap/react-webpack-babel-starter
ℹ 「wdm」: wait until bundle finished: /
ℹ 「wdm」: asset main.js 1.59 MiB [emitted] [big] (name: main) 1 related asset
asset img/5b197262b6f2d51239cafdfbc6bb0487.svg 2.55 KiB [emitted] [immutable] [from: assets/img/react_logo.svg] (auxiliary name: main)
asset index.html 617 bytes [emitted]
runtime modules 27.1 KiB 16 modules
modules by path ../node_modules/ 1.47 MiB 60 modules
modules by path ./ 18 KiB
modules by path ./components/*.jsx 14.6 KiB
./components/App.jsx 5.17 KiB [built] [code generated]
./components/AboutPage.jsx 4.65 KiB [built] [code generated]
./components/WelcomePage.jsx 4.79 KiB [built] [code generated]
modules by path ./assets/ 2.41 KiB
./assets/scss/App.scss 1.42 KiB [built] [code generated]
../node_modules/css-loader/dist/cjs.js!../node_modules/sass-loader/dist/cjs.js!./assets/scss/App.scss 922 bytes [built] [code generated]
./assets/img/react_logo.svg 84 bytes [built] [code generated]
./index.js 970 bytes [built] [code generated]
external "React" 42 bytes [built] [code generated]
webpack 5.38.1 compiled successfully in 11631 ms
ℹ 「wdm」: Compiled successfully.
^C
https://github.com/vikpe/react-webpack-babel-starter https://github.com/coding-to-music/react-webpack-babel-starter
React Webpack Babel Starter
Installation
yarn install
(ornpm install
for npm)Usage
Development
yarn run start-dev
http://localhost:8080
Production
yarn run start-prod
/dist/
http://localhost:3000
Note: change port number by setting the envrionment variable
PORT
All commands
yarn run start-dev
http://localhost:8080
yarn run start-prod
/dist/
@http://localhost:3000
yarn run build
/dist/
yarn run test
yarn run prettier-write
yarn run prettier-check
yarn run start
yarn run start-dev
)Note: replace
yarn
withnpm
inpackage.json
if you use npm.See also