1 Star 0 Fork 0

Clake/react-bootstrap-v4

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.dev.js 989 Bytes
一键复制 编辑 原始数据 按行查看 历史
clakeboy@gmail.com 提交于 2020-03-26 02:58 . init doc
import webpack from 'webpack';
import merge from 'webpack-merge';
let cfg = require('./webpack.common').default;
export default merge(cfg,{
entry: {
//主文件
app : [
'webpack/hot/dev-server',
'webpack-hot-middleware/client?reload=true',
'./exsrc/app.js'
]
},
module: {
rules: [
{ test: /\.txt|\.md$/, use: 'raw-loader' }
]
},
output: {
path: `${__dirname}/examples`,
filename: '[name].js',
chunkFilename:`./view/chunk/[name].[chunkhash:8].js`
},
//插件项
plugins: [
// new ExtractTextPlugin('[name].css'),
// new webpack.optimize.CommonsChunkPlugin('common'),
new webpack.HotModuleReplacementPlugin(),
new webpack.DefinePlugin({
"process.env": {
NODE_ENV: JSON.stringify("development")
}
})
],
mode: 'development',
devtool: 'eval-source-map',
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/clake/react_bootstrapv4.git
git@gitee.com:clake/react_bootstrapv4.git
clake
react_bootstrapv4
react-bootstrap-v4
master

搜索帮助