Skip to content

Commit

Permalink
v1.22.1 fix CDN url for webpack build
Browse files Browse the repository at this point in the history
  • Loading branch information
im6 committed Jul 11, 2020
1 parent 10bd915 commit f26ce82
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/public/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/server/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vp",
"version": "1.22.0",
"version": "1.22.1",
"description": "source code of react.colorpk.com",
"engines": {
"npm": ">=6.13.4",
Expand Down
3 changes: 2 additions & 1 deletion webpack/production.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const CompressionPlugin = require('compression-webpack-plugin');
const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const CopyPlugin = require('copy-webpack-plugin');
const autoprefixer = require('autoprefixer');
const { version } = require('../package.json');

const {
withoutCssModuleFiles,
Expand All @@ -25,7 +26,7 @@ const prodBase = {

const client = Object.assign(clientBaseConfig, prodBase, {
output: {
publicPath: '//dkny.oss-cn-hangzhou.aliyuncs.com/2/',
publicPath: `https://cdn.jsdelivr.net/gh/im6/vp@v${version}/dist/public`,
path: path.join(__dirname, '../dist/public'),
filename: '[name].js?[contenthash]',
},
Expand Down

0 comments on commit f26ce82

Please sign in to comment.