mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-03 20:58:09 +08:00
25 lines
669 B
JavaScript
25 lines
669 B
JavaScript
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',
|
|
extends: ['vue2', 'lint'],
|
|
minimize: false,
|
|
alias: config.alias,
|
|
postcss: config.postcss,
|
|
sourceMap: '#inline-source-map'
|
|
});
|
|
|
|
cooking.add('vue.loaders.js', 'isparta-loader!eslint-loader');
|
|
cooking.add('loader.js.exclude', config.jsexclude);
|
|
cooking.add('preLoader.js', {
|
|
test: /\.js$/,
|
|
loader: 'isparta-loader!eslint-loader',
|
|
exclude: config.jsexclude
|
|
});
|
|
|
|
cooking.add('plugins.process', new ProgressBarPlugin());
|
|
module.exports = cooking.resolve();
|