1 Star 0 Fork 0

mk1105/鱼乐圈

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.config.js 976 Bytes
一键复制 编辑 原始数据 按行查看 历史
const path = require('path')
const HtmlWebpackplugin = require('html-webpack-plugin')
const VueLoaderPlugin = require('vue-loader/lib/plugin')
module.exports={
entry:path.join(__dirname,'/src/main.js'),
output:{
filename:'bundle.js',
path:path.join(__dirname,'./dist')
},
plugins:[
new HtmlWebpackplugin({
template:path.join(__dirname,'./src/index.html'),
filename:'index.html'
}),
new VueLoaderPlugin()
],
module:{
rules:[
{test:/\.css$/,loader:['style-loader','css-loader']},
{test:/\.scss$/,loader:['style-loader','css-loader','sass-loader']},
{test:/\.less$/,loader:['style-loader','css-loader','less-loader']},
{test:/\.(jpg|png|gif|bmp|jpeg)$/,loader:'url-loader?name=[hash:8]-[name].[ext]'},
{
test: /\.js$/,
loader: "babel-loader",
exclude:__dirname + 'node_modules',
include: __dirname + 'src',
},
{test:/\.vue$/,loader:'vue-loader'},
{test:/\.(eot|svg|ttf|woff|woff2)$/,loader:'url-loader'}
]
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liqinyi/fish_circle.git
git@gitee.com:liqinyi/fish_circle.git
liqinyi
fish_circle
鱼乐圈
master

搜索帮助