rax-scripts
Configuration and scripts for Rax App.
Last updated a month ago by yuanyan .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball
$ cnpm install rax-scripts 
SYNC missed versions from official npm registry.

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.

update webpack config

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

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

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

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

like:

// webpack.config.update.js
const sassLoader = require.resolve('sass-loder');

module.exports = function update (webpackConfig) {

  webpackConfig.module.loaders.push({
    test: /\.scss$/,
    loader: sassLoader
  });

  return webpackConfig;
}
Downloads
Today 4
This Week 11
This Month 142
Last Day 3
Last Week 57
Last Month 191
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2017 © taobao.org |