3 Star 15 Fork 13

wanglei / BlockChainProductTraceability

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
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'
}
}
NodeJS
1
https://gitee.com/wanglei491667967/BlockChainProductTraceability.git
git@gitee.com:wanglei491667967/BlockChainProductTraceability.git
wanglei491667967
BlockChainProductTraceability
BlockChainProductTraceability
master

搜索帮助