mirror of
https://github.com/aleleba/create-react-ssr.git
synced 2025-01-08 21:16:58 -06:00
PR-753737: moviendo toda la logica de front-end a src.
This commit is contained in:
parent
e5ffd7c61d
commit
f7a26dbc6a
11
.gitignore
vendored
11
.gitignore
vendored
@ -1,6 +1,9 @@
|
||||
#node_modules ignore
|
||||
node_modules
|
||||
src/node_modules
|
||||
server/node_modules
|
||||
#.envs
|
||||
.env
|
||||
#build
|
||||
/build
|
||||
src/.env
|
||||
server/.env
|
||||
#builds
|
||||
src/build
|
||||
server/build
|
0
package-lock.json → src/package-lock.json
generated
0
package-lock.json → src/package-lock.json
generated
@ -1,11 +1,11 @@
|
||||
const path = require('path');
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||
const { config: { portDev, portReloadDev } } = require('./src/config')
|
||||
const { config: { portDev, portReloadDev } } = require('./config')
|
||||
|
||||
|
||||
module.exports = {
|
||||
entry: './src/index.js',
|
||||
entry: './frontend/index.js',
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'build'),
|
||||
filename: 'bundle.js',
|
||||
@ -50,7 +50,7 @@ module.exports = {
|
||||
],
|
||||
devServer: {
|
||||
static: {
|
||||
directory: path.join(__dirname, 'dist')
|
||||
directory: path.join(__dirname, 'build')
|
||||
},
|
||||
allowedHosts: "all",
|
||||
compress: true,
|
@ -6,7 +6,7 @@ const TerserPlugin = require('terser-webpack-plugin');
|
||||
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
entry: './src/index.js',
|
||||
entry: './frontend/index.js',
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'build'),
|
||||
filename: 'bundle.js',
|
||||
@ -16,7 +16,7 @@ module.exports = {
|
||||
extensions: ['.js', '.jsx'],
|
||||
alias: {
|
||||
'@components': path.resolve(__dirname, 'src/components/'),
|
||||
'@styles': path.resolve(__dirname, 'src/styles/'),
|
||||
'@styles': path.resolve(__dirname, 'frontend/styles/'),
|
||||
}
|
||||
},
|
||||
mode: 'production',
|
Loading…
Reference in New Issue
Block a user