UNPKG

agile-ui

Version:

组件化的ui框架

45 lines (43 loc) 1.25 kB
const webpack = require('webpack'), path = require('path'); const packageJSON = require('./package.json'); module.exports = { entry: __dirname + "/main.js", //已多次提及的唯一入口文件 output: { path: __dirname + "/dist", //filename: "bundle-[hash].js" filename: "agile.ui.js" }, devtool: 'none', module: { rules: [ { test: /\.aui$/, use: { loader: "aui-loader" } }, { test: /(\.jsx|\.js)$/, use: { loader: "babel-loader" }, exclude: /node_modules/ } ] }, resolve: { alias: { 'AuiComponent': path.join(__dirname, "./libs/AuiComponent.js") } }, plugins: [ (function(){ const arr = ['Agile UI HTML5组件化框架']; arr.push('Version: '+packageJSON.version+'.'+new Date().getTime()); arr.push('Author: '+packageJSON.author); arr.push("License MIT @ https://github.com/nandy007/agile-ui"); return new webpack.BannerPlugin(arr.join('\n')); })() ] };