1 Star 0 Fork 0

hengke/nextcloud-social-login

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.js 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
zorn 提交于 2022-11-08 12:35 . Fixed settings checkboxes
const path = require('path')
const { VueLoaderPlugin } = require('vue-loader')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const RemoveEmptyScriptsPlugin = require('webpack-remove-empty-scripts')
module.exports = {
mode: 'production',
context: path.resolve(__dirname, 'src'),
entry: {
personal: './personal.js',
settings: './settings.js',
styles: './styles.scss'
},
output: {
path: path.resolve(__dirname, 'js'),
},
performance: {
maxAssetSize: 256000,
maxEntrypointSize: 256000,
},
stats: { modulesSpace: 0 },
module: {
rules: [
{
test: /\.css$/,
use: ['style-loader', 'css-loader']
},
{
test: /\.scss$/,
use: ['css-loader', 'sass-loader']
},
{
test: /src[\\\/].+\.scss$/,
exclude: /node_modules/,
use: [MiniCssExtractPlugin.loader, 'css-loader?url=false', 'sass-loader']
},
{
test: /\.vue$/,
loader: 'vue-loader',
exclude: /node_modules/
},
]
},
plugins: [
new VueLoaderPlugin(),
new RemoveEmptyScriptsPlugin(),
new MiniCssExtractPlugin({filename: '../css/[name].css'}),
],
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hengke/nextcloud-social-login.git
git@gitee.com:hengke/nextcloud-social-login.git
hengke
nextcloud-social-login
nextcloud-social-login
master

搜索帮助