3 Star 0 Fork 0

FindCourse/search-app

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
webpack.dev.js 643 Bytes
一键复制 编辑 原始数据 按行查看 历史
xianwzha 提交于 2017-10-02 23:18 +08:00 . refactor
const webpack = require('webpack');
const { resolve } = require('path');
const merge = require('webpack-merge');
const common = require('./webpack.common.js')
module.exports = merge(common, {
devtool: 'inline-source-map',
entry: ['react-hot-loader/patch',
'webpack-dev-server/client?https://localhost:9001',
'webpack/hot/only-dev-server'],
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.NamedModulesPlugin(),
],
devServer: {
hot: true,
contentBase: resolve(__dirname, 'dist'),
publicPath: '/',
port: 9001,
disableHostCheck: true,
headers: {
'Access-Control-Allow-Origin': '*'
}
},
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/findcourse/search-app.git
git@gitee.com:findcourse/search-app.git
findcourse
search-app
search-app
master

搜索帮助