26 lines
554 B
JavaScript
26 lines
554 B
JavaScript
const fs = require("fs");
|
|
const webpack = require("webpack");
|
|
const { defineConfig } = require("@vue/cli-service");
|
|
|
|
const someFileContents = fs.readFileSync("./src/components/Game.js");
|
|
|
|
module.exports = defineConfig({
|
|
lintOnSave: true,
|
|
|
|
configureWebpack: {
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
somevar: JSON.stringify(someFileContents),
|
|
}),
|
|
],
|
|
},
|
|
|
|
transpileDependencies: true,
|
|
|
|
pluginOptions: {
|
|
vuetify: {
|
|
// https://github.com/vuetifyjs/vuetify-loader/tree/next/packages/vuetify-loader
|
|
},
|
|
},
|
|
});
|