1.2.0 • Published 5 years ago

@renanhangai/nuxt-helper-config v1.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

nuxt-helper-config

Basic Usage

const helper = require( "@renanhangai/nuxt-helper-config" );

const generator = helper.create({
  /*
    Project root dir. (Where package.json is located)
  */
  rootDir: String,
  /*
    Where files will be put
  */
  buildDir: String,
  /*
    Object with default options for every config generated
  */
  defaults: Object,
});

/*
  srcDir is the name of the nuxt source directory
 */
generator( srcDir, {
  /*
    Alias for modules being imported.
  */
  alias: Object,
  /*
    Array of css to be included on the build
  */
  css: Array,
  plugins: Array,
  modules: Array,
  middleware: Array,
  /*
    Map with constants to be defined during compilation phase
  */
  define: Map< String, any >,
  provide: Map< String, String|Array<String> >,
});
1.2.0

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

0.4.0

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago