React
1
Вклад в тег
const browser = await puppeteer.launch({args:['--user-data-dir=/home/rut/.config/google-chrome/Profile 1']});
const page = await browser.newPage();
await page.goto('https://google.ru/');
await page.screenshot({path: 'google.png'});
await browser.close();
const rewireAliases = require("react-app-rewire-aliases");
const { paths } = require("react-app-rewired");
const path = require("path");
module.exports = function override(config, env) {
config = rewireAliases.aliasesOptions({
Views: path.resolve(__dirname, `${paths.appSrc}/templates/default/views`),
Components: path.resolve(__dirname, `${paths.appSrc}/controllers`),
Store: path.resolve(__dirname, `${paths.appSrc}/controllers/store`),
Config: path.resolve(
__dirname,
`${paths.appSrc}/controllers/services/Config`
),
})(config, env);
return config;
};