mirror of
https://github.com/vuejs/awesome-vue.git
synced 2024-11-20 11:16:40 -05:00
Copy the logo over
This commit is contained in:
parent
5480f3497d
commit
e536da3c73
2 changed files with 12 additions and 1 deletions
|
@ -17,6 +17,7 @@
|
|||
"babel-loader": "^6.0.0",
|
||||
"babel-preset-es2015": "^6.0.0",
|
||||
"chalk": "^1.1.3",
|
||||
"copy-webpack-plugin": "^3.0.1",
|
||||
"cross-env": "^1.0.6",
|
||||
"css-loader": "^0.23.1",
|
||||
"file-loader": "^0.8.4",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
var path = require('path')
|
||||
var webpack = require('webpack')
|
||||
var cp = require('copy-webpack-plugin')
|
||||
|
||||
module.exports = {
|
||||
entry: './app/site/src/main.js',
|
||||
|
@ -35,7 +36,16 @@ module.exports = {
|
|||
historyApiFallback: true,
|
||||
noInfo: true
|
||||
},
|
||||
devtool: '#eval-source-map'
|
||||
devtool: '#eval-source-map',
|
||||
plugins: [
|
||||
new cp([
|
||||
{
|
||||
context: path.join(__dirname, 'app/site/src/assets'),
|
||||
from: 'logo.png',
|
||||
to: path.join(__dirname, 'app/site/dist'),
|
||||
}
|
||||
])
|
||||
]
|
||||
}
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
|
|
Loading…
Reference in a new issue