-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16622 from mshima/skip_ci-vue_webpack
Cleanup vue webpack config.
- Loading branch information
Showing
21 changed files
with
291 additions
and
353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 16 additions & 6 deletions
22
generators/client/templates/vue/src/main/webapp/app/constants.ts.ejs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 25 additions & 1 deletion
26
generators/client/templates/vue/src/main/webapp/app/shims-vue.d.ts.ejs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...nt/templates/vue/src/test/javascript/spec/app/shared/config/axios-interceptor.spec.ts.ejs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
'use strict'; | ||
|
||
const path = require('path'); | ||
|
||
<%_ if (buildToolUnknown) { _%> | ||
const packageJson = require('./../package.json'); | ||
<%_ } _%> | ||
|
||
module.exports = { | ||
serverApiUrl: '', | ||
<%_ if (buildToolUnknown) { _%> | ||
version: packageJson.version, | ||
<%_ } else { _%> | ||
// APP_VERSION is passed as an environment variable from the Gradle / Maven build tasks. | ||
version: process.env.hasOwnProperty('APP_VERSION') ? process.env.APP_VERSION : 'UNKNOWN', | ||
<%_ } _%> | ||
dev: { | ||
// https://webpack.js.org/configuration/devtool/#development | ||
devtool: 'cheap-module-source-map', | ||
// If you have problems debugging vue-files in devtools, | ||
// set this to false - it *may* help | ||
// https://vue-loader.vuejs.org/en/options.html#cachebusting | ||
cacheBusting: true, | ||
cssSourceMap: true | ||
}, | ||
build: { | ||
productionSourceMap: true, | ||
// https://webpack.js.org/configuration/devtool/#production | ||
devtool: 'source-map', | ||
// Gzip off by default as many popular static hosts such as | ||
// Surge or Netlify already gzip all static assets for you. | ||
// Before setting to `true`, make sure to: | ||
// npm install --save-dev compression-webpack-plugin | ||
productionGzip: false, | ||
productionGzipExtensions: ['js', 'css'], | ||
|
||
// Run the build command with an extra argument to | ||
// View the bundle analyzer report after build finishes: | ||
// `npm run build --report` | ||
// Set to `true` or `false` to always turn it on or off | ||
bundleAnalyzerReport: process.env.npm_config_report | ||
} | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
generators/client/templates/vue/webpack/loader.conf.js.ejs
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.