Skip to content

Instantly share code, notes, and snippets.

@jasonliao
Created July 23, 2016 03:05
Show Gist options
  • Save jasonliao/7a9af5036d71cd9c096833cc602eb2f6 to your computer and use it in GitHub Desktop.
Save jasonliao/7a9af5036d71cd9c096833cc602eb2f6 to your computer and use it in GitHub Desktop.
fis.match('/src/**.js', {
parser: fis.plugin('babel-5.x', {
optional: ["es7.decorators", "es7.classProperties"],
stage: 0
}),
rExt: '.js'
});
fis.match('*.scss', {
parser: fis.plugin('node-sass'),
rExt: '.css'
});
fis.hook('commonjs', {
extList: ['.js']
});
fis.unhook('components');
fis.hook('node_modules');
fis.match('{/src/**.js, /node_modules/**.js}', {
isMod: true,
preprocessor: fis.plugin('js-require-css')
});
fis.match('::package', {
postpackager: fis.plugin('loader')
});
fis.get('project.ignore').push('dist/**');
fis.get('project.ignore').push('package.json');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment