Skip to content

Instantly share code, notes, and snippets.

Nikolay Dombrovskiy eseQ

View GitHub Profile
View package.json
{
"name": "R16App",
"version": "1.7.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"lint": "standard --verbose | snazzy",
"lintdiff": "git diff --name-only --cached --relative | grep '\\.js$' | xargs standard | snazzy",
"fixcode": "standard --fix",
"clean": "rm -rf $TMPDIR/react-* && watchman watch-del-all && npm cache clean",
View webpack.base.config.js
module.exports = ({ main }) => new Config().merge({
entry: {
main: `${main.appPath}/startup/App`,
},
});
View webpack.base.config.js
// apps/other/client/webpack/webpack.base.config.js
const Config = require('webpack-config').default;
const environment = require('webpack-config').environment;
const path = require('path');
const key = environment.valueOf('projectKey');
const main = environment.valueOf(key);
module.exports = new Config().merge({
You can’t perform that action at this time.