当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 13

the/BlockChainProductTraceability
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
webpack.config.js 1.41 KB
一键复制 编辑 原始数据 按行查看 历史
wanglei 提交于 2018-05-14 17:01 . finsh
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = {
entry: './app/javascripts/app.js',
output: {
path: path.resolve(__dirname, 'build'),
filename: 'app.js'
},
plugins: [
// Copy our app's index.html to the build folder.
new CopyWebpackPlugin([
{ from: './app/index.html', to: "index.html" },
{ from: './app/list-item.html', to: "list-item.html" },
{ from: './app/add.html', to: "add.html" },
{ from: './app/code.html', to: "code.html" },
{ from: './app/addinfo.html', to: "addinfo.html" },
{ from: './app/addinfo_arrival.html', to: "addinfo_arrival.html" },
{ from: './app/addinfo_departure.html', to: "addinfo_departure.html" },
{ from: './app/addinfo_factory.html', to: "addinfo_factory.html" },
{ from: './app/addinfo_storage.html', to: "addinfo_storage.html" },
])
],
module: {
rules: [
{
test: /\.css$/,
use: [ 'style-loader', 'css-loader' ]
}
],
loaders: [
{ test: /\.json$/, use: 'json-loader' },
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel-loader',
query: {
presets: ['es2015'],
plugins: ['transform-runtime']
}
}
]
},
devServer:{
host: '0.0.0.0',
disableHostCheck:true,
public:'0.0.0.0'
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/THY-ahjzu/BlockChainProductTraceability.git
git@gitee.com:THY-ahjzu/BlockChainProductTraceability.git
THY-ahjzu
BlockChainProductTraceability
BlockChainProductTraceability
master

搜索帮助