mirror of
https://github.com/aleleba/create-react-ssr.git
synced 2025-07-18 10:38:42 -06:00
PR-589725: Updating packages, fixing redux actions and fixing linting.
This commit is contained in:
@ -35,6 +35,12 @@ if(fs.existsSync(`${ROOT_DIR}/../public/img`)){
|
||||
});
|
||||
}
|
||||
|
||||
if(fs.existsSync(`${ROOT_DIR}/../public/fonts`)){
|
||||
copyPatterns.push({
|
||||
from: `${ROOT_DIR}/../public/fonts`, to: 'assets/fonts',
|
||||
});
|
||||
}
|
||||
|
||||
const config: Configuration = {
|
||||
entry: [`webpack-hot-middleware/client?path=${envConfig.PREFIX_URL}/reload_wss&timeout=2000&reload=true&autoConnect=true`, `${ROOT_DIR}/../src/frontend/index.tsx`],
|
||||
output: {
|
||||
@ -68,7 +74,16 @@ const config: Configuration = {
|
||||
'options': {
|
||||
modules: {
|
||||
auto: /\.module\.\w+$/i,
|
||||
}
|
||||
},
|
||||
url: {
|
||||
filter: (url) => {
|
||||
// No procesar URLs absolutas que comienzan con /
|
||||
if (url.startsWith('/')) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
'sass-loader',
|
||||
|
Reference in New Issue
Block a user