1 Star 0 Fork 0

Mehouse/vue-first

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.config.js 924 Bytes
一键复制 编辑 原始数据 按行查看 历史
Mehouse 提交于 2019-03-19 12:50 . init my project
const path = require('path');
const htmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry:path.join(__dirname,'./src/main.js'),
output:{
path:path.join(__dirname,'./dist'),
filename:'bundle.js'
},
plugins:[
new htmlWebpackPlugin ({
template:path.join(__dirname,'./src/index.html'),
filename: 'index.html'
})
],
module:{
rules:[
{test:/\.css$/,use:['style-loader','css-loader']},
{test:/\.less$/,use:['style-loader','css-loader','less-loader']},
{test:/\.scss$/,use:['style-loader','css-loader','sass-loader']},
{test:/\.(jpg|png|git|bmp|jpeg)/,use:'url-loader'},
{test:/\.(ttf|eot|svg|woff|woff2)/,use:'url-loader'},
{test:/\.js/,use:'babel-loader',exclude:/node_modules/},
{test:/\.vue/,use:'vue-loader'}
]
}
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mehouse/vue-first.git
git@gitee.com:mehouse/vue-first.git
mehouse
vue-first
vue-first
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385