mirror of
https://github.com/aleleba/create-react-ssr.git
synced 2025-06-19 20:38:31 -06:00
PR-753737: Adding final client webpack configuration.
This commit is contained in:
8
src/config/index.js
Normal file
8
src/config/index.js
Normal file
@ -0,0 +1,8 @@
|
||||
require('dotenv').config();
|
||||
|
||||
const config = {
|
||||
portDev: process.env.PORT_DEV ? process.env.PORT_DEV : 3000,
|
||||
portReloadDev: process.env.PORT_RELOAD_DEV,
|
||||
}
|
||||
|
||||
module.exports = { config: config };
|
@ -1,5 +1,6 @@
|
||||
import React from 'react';
|
||||
import ReactDom from 'react-dom';
|
||||
import App from './components/App';
|
||||
import './styles/global.sass';
|
||||
|
||||
ReactDom.render(<App />, document.getElementById('app'));
|
6
src/styles/global.sass
Normal file
6
src/styles/global.sass
Normal file
@ -0,0 +1,6 @@
|
||||
$base-color: #c6538c
|
||||
$color: rgba(black, 0.88)
|
||||
|
||||
body
|
||||
background-color: $base-color
|
||||
color: $color
|
Reference in New Issue
Block a user