Ai
3 Star 0 Fork 0

FindCourse/search-app

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
webpack.common.js 707 Bytes
一键复制 编辑 原始数据 按行查看 历史
xianwzha 提交于 2017-11-26 23:17 +08:00 . change public path
const webpack = require('webpack');
const path = require('path');
module.exports = {
entry: ['babel-polyfill',`${__dirname}/app/app.js`],
output: {
filename: 'bundle.js',
path: path.join(__dirname, './dist'),
publicPath: 'https://www.itkedian.com/'
},
resolve: {
extensions: ['.js', '.jsx']
},
module: {
rules: [
{
test: /\.js$/,
use: [
'babel-loader',
],
exclude: /node_modules/
},
{
test: /\.css$/,
use: [
'style-loader',
'css-loader?modules',
'postcss-loader',
],
},
{
test: /\.(jpg|jpeg|png|svg)$/,
loader: 'url-loader',
options: {
limit: 25000,
},
}
],
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/findcourse/search-app.git
git@gitee.com:findcourse/search-app.git
findcourse
search-app
search-app
master

搜索帮助