PluginProbe
Plugin Detective – Troubleshooting Conflicts / 1.1.4
Plugin Detective – Troubleshooting Conflicts v1.1.4
1.2.35 1.2.33 1.2.32 1.2.31 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.2 1.2.1 1.2.10 1.2.12 1.2.13 1.2.14 1.2.16 1.2.19 1.2.20 1.2.22 1.2.23 1.2.24 All 54 releases
plugin-detective / troubleshoot / app / config / index.js

index.js in Plugin Detective – Troubleshooting Conflicts 1.1.4, at troubleshoot/app/config/index.js

56 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 // see http://vuejs-templates.github.io/webpack for documentation.
2 var path = require('path')
3
4 module.exports = {
5 build: {
6 env: require('./prod.env'),
7 index: path.resolve(__dirname, '../dist/index.html'),
8 assetsRoot: path.resolve(__dirname, '../dist'),
9 assetsSubDirectory: 'static',
10 assetsPublicPath: '/',
11 productionSourceMap: true,
12 // Gzip off by default as many popular static hosts such as
13 // Surge or Netlify already gzip all static assets for you.
14 // Before setting to `true`, make sure to:
15 // npm install --save-dev compression-webpack-plugin
16 productionGzip: false,
17 productionGzipExtensions: ['js', 'css'],
18 // Run the build command with an extra argument to
19 // View the bundle analyzer report after build finishes:
20 // `npm run build --report`
21 // Set to `true` or `false` to always turn it on or off
22 bundleAnalyzerReport: process.env.npm_config_report
23 },
24 dev: {
25 env: require('./dev.env'),
26 port: 8080,
27 autoOpenBrowser: true,
28 assetsSubDirectory: 'static',
29 assetsPublicPath: '/',
30 proxyTable: {
31 '/wp-': {
32 target: 'http://drawattention.localdev',
33 changeOrigin: true,
34 },
35 '/api': {
36 target: 'http://drawattention.localdev',
37 changeOrigin: true,
38 },
39 '/api.php': {
40 target: 'http://drawattention.localdev/wp-content/plugins/plugin-detective/troubleshoot',
41 changeOrigin: true
42 },
43 '/local-get-app.php': {
44 target: 'http://drawattention.localdev/wp-content/plugins/plugin-detective/troubleshoot/app',
45 changeOrigin: true
46 }
47 },
48 // CSS Sourcemaps off by default because relative paths are "buggy"
49 // with this option, according to the CSS-Loader README
50 // (https://github.com/webpack/css-loader#sourcemaps)
51 // In our experience, they generally work as expected,
52 // just be aware of this issue when enabling this option.
53 cssSourceMap: false
54 }
55 }
56