2 Star 37 Fork 14

凌晨三点/vue-draggable-resizable-gorkys

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.test.js 998 Bytes
一键复制 编辑 原始数据 按行查看 历史
gorkys 提交于 2019-07-12 19:45 . 初次提交
var path = require('path')
var webpack = require('webpack')
const { VueLoaderPlugin } = require('vue-loader')
function resolve (dir) {
return path.join(__dirname, dir)
}
module.exports = {
mode: 'development',
resolve: {
extensions: ['.js', '.vue'],
alias: {
vue$: 'vue/dist/vue.esm.js',
'@': resolve('src')
}
},
module: {
rules: [
{
test: /\.(js|vue)$/,
loader: 'eslint-loader',
enforce: 'pre',
include: [resolve('src'), resolve('test')]
},
{
test: /\.vue$/,
loader: ['vue-loader']
},
{
test: /\.css$/,
loader: ['style-loader', 'css-loader']
},
{
test: /\.js$/,
loader: ['babel-loader'],
include: [resolve('src'), resolve('test')]
}
]
},
devtool: 'inline-source-map',
plugins: [
new VueLoaderPlugin(),
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"testing"'
}
})
]
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/charact/vue-draggable-resizable-gorkys.git
git@gitee.com:charact/vue-draggable-resizable-gorkys.git
charact
vue-draggable-resizable-gorkys
vue-draggable-resizable-gorkys
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385