ace-scripts

0.0.7 • Public • Published

rax-scripts npm Dependency Status Known Vulnerabilities

Rax project development tools.

Commands

  • start Start development services, Default enable hot reload and inline-module-source-map.
  • build Bundle the project.

Customize Webpack Config

rax-scripts has its own default webpack configuration. Also you can modify the webpack configuration.

1. create webpack.config.rewire.js into project root.

rax-project
├── src
│   ├── App.css
│   ├── App.js
│   └── index.js
└── webpack.config.rewire.js

2. webpack.config.rewire.js accept a webpackConfig and return it.

like:

// webpack.config.rewire.js
const sassLoader = require.resolve('sass-loder');
 
module.exports = function (webpackConfig) {
  webpackConfig.module.loaders.push({
    test: /\.scss$/,
    loader: sassLoader,
  });
 
  return webpackConfig;
};

Readme

Keywords

Package Sidebar

Install

npm i ace-scripts

Weekly Downloads

8

Version

0.0.7

License

BSD-3-Clause

Unpacked Size

112 kB

Total Files

58

Last publish

Collaborators

  • yacheng