teamco-xd-plugin/webpack.config.js

30 lines
667 B
JavaScript

const { VueLoaderPlugin } = require('vue-loader')
module.exports = {
entry: "./src/main.js",
output: {
path: __dirname,
filename: 'main.js',
libraryTarget: "commonjs2"
},
devtool: "none", // prevent webpack from using eval() on my module
externals: {
uxp: "uxp",
scenegraph: "scenegraph"
},
module: {
rules: [
{
test: /\.vue$/,
loader: "vue-loader"
},
{
test: /\.css$/,
use: ["style-loader", "css-loader"]
}
]
},
plugins: [
new VueLoaderPlugin()
]
};