element/build/cooking.test.js

25 lines
669 B
JavaScript
Raw Normal View History

2016-10-11 19:00:37 +08:00
var path = require('path');
var cooking = require('cooking');
var config = require('./config');
var ProgressBarPlugin = require('progress-bar-webpack-plugin');
cooking.set({
entry: './src/index.js',
2016-10-19 14:53:32 +08:00
extends: ['vue2', 'lint'],
2016-10-11 19:00:37 +08:00
minimize: false,
alias: config.alias,
postcss: config.postcss,
sourceMap: '#inline-source-map'
});
2016-10-19 14:53:32 +08:00
cooking.add('vue.loaders.js', 'isparta-loader!eslint-loader');
2016-10-11 19:00:37 +08:00
cooking.add('loader.js.exclude', config.jsexclude);
cooking.add('preLoader.js', {
test: /\.js$/,
2016-10-19 14:53:32 +08:00
loader: 'isparta-loader!eslint-loader',
exclude: config.jsexclude
2016-10-11 19:00:37 +08:00
});
cooking.add('plugins.process', new ProgressBarPlugin());
module.exports = cooking.resolve();