1 Star 0 Fork 13

rsl-learn/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'
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/rsl-learn/BlockChainProductTraceability.git
[email protected]:rsl-learn/BlockChainProductTraceability.git
rsl-learn
BlockChainProductTraceability
BlockChainProductTraceability
master

搜索帮助