123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- const proxy = {
- "/api/uq_basic": {
- target: process.env.VUE_APP_QUESTIONS_HOST_URL,
- changeOrigin: true,
- },
- };
- var webpack = require("webpack");
- var packageData = require("./package.json");
- var v = packageData.version;
- const timestamp = Date.now();
- let config = {
-
-
-
- publicPath: "/admin",
- lintOnSave: process.env.NODE_ENV !== "production" ? true : "error",
- devServer: {
- proxy,
-
- client: {
- overlay: false,
- },
- },
- configureWebpack: {
-
- plugins: [
-
- new webpack.IgnorePlugin({
- resourceRegExp: /^\.\/locale$/,
- contextRegExp: /moment$/,
- }),
-
- ],
- },
- transpileDependencies: [/\bvue-awesome\b/],
- productionSourceMap: false,
- };
- if (process.env.NODE_ENV === "production") {
- config.css = Object.assign(config.css || {}, {
- extract: {
- filename: `css/[name].${v}.${timestamp}.css`,
- chunkFilename: `css/[name].${v}.${timestamp}.css`,
- },
- });
- config.configureWebpack = Object.assign(config.configureWebpack || {}, {
- output: {
- filename: `js/[name].${v}.${timestamp}.js`,
- chunkFilename: `js/[name].${v}.${timestamp}.js`,
- },
- });
- }
- module.exports = config;
- require("events").EventEmitter.defaultMaxListeners = 0;
|