UNPKG

okam-build

Version:

The build tool for Okam develop framework

67 lines (60 loc) 1.49 kB
/** * @file The config for building ali ant mini program * @author sparklewhy@gmail.com */ 'use strict'; const merge = require('../util').merge; const baseConf = require('./base'); module.exports = merge({}, baseConf, { output: { /** * 输出的文件路径映射定义 * * @type {Object} */ pathMap: { projectConfig: false, entryScript: 'app.js', entryStyle: 'app.acss', appConfig: 'app.json' }, /** * 输出的自定义组件各个部分文件的后缀名 * * @type {Object} */ componentPartExtname: { script: 'js', style: 'acss', tpl: 'axml', config: 'json', filter: 'sjs' } }, processors: { postcss: { extnames: ['acss', 'css'] }, filter: { extnames: ['sjs'], rext: 'sjs', options: { plugins: ['dep'] } }, nativeView: { processor: 'view', extnames: ['axml'], options: { keepOriginalContent: true, plugins: [['resource', { tags: { 'import': true, 'include': true, 'import-sjs': 'from' } }]] } } } });