create webpage project
This commit is contained in:
commit
c659f795dd
94 files changed
+9040
No files matched your search
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
*
|
||||
* @authors Tony.Deng (dengtongyu123@163.com)
|
||||
* @date 2017-05-17 15:20:47
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
const webpack = require('webpack');
|
||||
|
||||
module.exports = function(pathName) {
|
||||
|
||||
let path = pathName?pathName:'test';
|
||||
|
||||
let exportObj = {
|
||||
|
||||
//入口文件
|
||||
entry: "./src/pages/"+path+"/index.js",
|
||||
output: {
|
||||
path: __dirname + "/build/pages/"+path,//打包后的文件存放的地方
|
||||
filename: "index.js"//打包后输出文件的文件名
|
||||
}
|
||||
}
|
||||
|
||||
return exportObj;
|
||||
}
|
||||
Reference in new issue
Block a user