1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/wanglei491667967-BlockChainProductTraceability

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
webpack.config.js 1.4 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
wanglei Отправлено 14.05.2018 12:01 cd4dec3
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'
}
}

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/wanglei491667967-BlockChainProductTraceability.git
git@api.gitlife.ru:oschina-mirror/wanglei491667967-BlockChainProductTraceability.git
oschina-mirror
wanglei491667967-BlockChainProductTraceability
wanglei491667967-BlockChainProductTraceability
master