代码拉取完成,页面将自动刷新
同步操作将从 wanglei/BlockChainProductTraceability 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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'
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。