1 Star 0 Fork 0

Timothy Zhang/care_system_dr_front

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.config.js 1.27 KB
一键复制 编辑 原始数据 按行查看 历史
yimig 提交于 2021-05-27 07:29 . add login_area
// Generated using webpack-cli http://github.com/webpack-cli
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const VueLoaderPlugin = require('vue-loader/lib/plugin-webpack5');
module.exports = {
mode: 'development',
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'dist'),
},
devtool: 'source-map',
devServer: {
open: true,
host: 'localhost',
},
plugins: [
new HtmlWebpackPlugin({
template: 'index.html',
}),
new VueLoaderPlugin(),
// Add your plugins here
// Learn more obout plugins from https://webpack.js.org/configuration/plugins/
],
module: {
rules: [{
test: /\\.(js|jsx)$/,
loader: 'babel-loader',
},{
test: /\.less$/i,
use: ['style-loader', 'css-loader', 'postcss-loader', 'less-loader'],
},{
test: /\.css$/i,
use: ['style-loader', 'css-loader', 'postcss-loader'],
},{
test: /\.vue$/,
use: 'vue-loader'
},{
test: /\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/,
type: 'asset',
},],
},
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yimig/care_system_dr_front.git
git@gitee.com:yimig/care_system_dr_front.git
yimig
care_system_dr_front
care_system_dr_front
main

搜索帮助