This is a fork of react-scripts
with some modifications that can toggle extra features.
Install with npm:
npm install --save-dev alpha-scripts
Install with yarn:
yarn add alpha-scripts --dev
Runs the app in development mode:
alpha-scripts start
Builds the app for production to the build folder:
alpha-scripts build
You can also config the "scripts" property of the package.json file.
You can pass options using a configuration file .alpharc.js
in the root directory and export an object containing your configuration.
This option will enable analyzer, only in production mode, will open analyzer result in http://localhost:1234 .eslintrc.*
files.
This option will enable eslint using configuration defined in .eslintrc.*
files.
This option set eslint configuration file path.
This option will enable the use of .babelrc
configuration files.
add directories for webpack to resolve modules from, see webpack resolve.modules
modules: ['components'];
set resolve aliases, see webpack resolve.alias
proxying API requests in development
allow additional webpack plugins. See plugins page for detail.
specify the options for mock data, more
specify the default open pathname in development
openPathname: '/homepage';
override less variables via less-loader modifyVars
theme: {
'primary-color': '#1DA57A',
},
paths for babel-loader to resolve
specify watch ignore files and/or directories watchOptions.ignored
Note:
If you want to override @icon-url, the value must be contained in quotes like "@icon-url": "'your-icon-font-path'". A fix sample.