1 Star 0 Fork 0

findroot/vuetify-file-browser

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.config.js 1.66 KB
一键复制 编辑 原始数据 按行查看 历史
const path = require('path')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const { VueLoaderPlugin } = require('vue-loader')
const PATHS = {
src: path.join(__dirname, './src'),
dist: path.join(__dirname, './dist')
}
module.exports = {
externals: {
paths: PATHS
},
entry: {
"vuetify-file-browser": PATHS.src,
},
output: {
filename: `[name].js`,
path: PATHS.dist,
publicPath: '/'
},
module: {
rules: [{
test: /\.js$/,
loader: 'babel-loader',
exclude: '/node_modules/'
}, {
test: /\.vue$/,
loader: 'vue-loader',
options: {
loader: {
scss: 'css-loader!sass-loader'
}
}
}, {
test: /\.scss$/,
use: [
'style-loader',
MiniCssExtractPlugin.loader,
{
loader: 'css-loader',
options: { sourceMap: true }
}, {
loader: 'postcss-loader',
options: { sourceMap: true, config: { path: `./postcss.config.js` } }
}, {
loader: 'sass-loader',
options: { sourceMap: true }
}
]
}, {
test: /\.css$/,
use: [
MiniCssExtractPlugin.loader,
{
loader: 'css-loader',
options: { sourceMap: true }
}, {
loader: 'postcss-loader',
options: { sourceMap: true, config: { path: `./postcss.config.js` } }
}
]
}]
},
resolve: {
extensions: ['*', '.js', '.vue', '.json'],
alias: {
'~': PATHS.src,
'vue$': 'vue/dist/vue.esm.js',
}
},
plugins: [
new VueLoaderPlugin(),
new MiniCssExtractPlugin({
filename: `[name].css`,
})
]
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/findroot/vuetify-file-browser.git
[email protected]:findroot/vuetify-file-browser.git
findroot
vuetify-file-browser
vuetify-file-browser
master

搜索帮助