File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ const vueLoaderConfig = require('./vue-loader.conf')
7
7
const ExtractTextPlugin = require ( 'extract-text-webpack-plugin' )
8
8
const OptimizeCSSPlugin = require ( 'optimize-css-assets-webpack-plugin' )
9
9
const UglifyJsPlugin = require ( 'uglifyjs-webpack-plugin' )
10
+ const CopyWebpackPlugin = require ( 'copy-webpack-plugin' )
10
11
11
12
const assetsRoot = path . resolve ( __dirname , '../dist' )
12
13
@@ -129,7 +130,15 @@ module.exports = {
129
130
// keep module.id stable when vender modules does not change
130
131
new webpack . HashedModuleIdsPlugin ( ) ,
131
132
// enable scope hoisting
132
- new webpack . optimize . ModuleConcatenationPlugin ( )
133
+ new webpack . optimize . ModuleConcatenationPlugin ( ) ,
134
+ // copy custom static assets
135
+ new CopyWebpackPlugin ( [
136
+ {
137
+ from : path . resolve ( __dirname , '../static' ) ,
138
+ to : assetsRoot ,
139
+ ignore : [ '.*' ]
140
+ }
141
+ ] )
133
142
] ,
134
143
node : {
135
144
// prevent webpack from injecting useless setImmediate polyfill because Vue
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export default {
46
46
},
47
47
beforeCreate () {
48
48
// TODO: custom svg path by config
49
- loadSprite (' //p1cu7wuzw.bkt.clouddn. com/icons .svg' , ' svgspriteit' )
49
+ loadSprite (' //unpkg. com/vue-page-designer/icon .svg' , ' svgspriteit' )
50
50
},
51
51
created () {
52
52
// 注册 widgets
You can’t perform that action at this time.
0 commit comments