Skip to content

Commit e536da3

Browse files
author
An Phan
committed
Copy the logo over
1 parent 5480f34 commit e536da3

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"babel-loader": "^6.0.0",
1818
"babel-preset-es2015": "^6.0.0",
1919
"chalk": "^1.1.3",
20+
"copy-webpack-plugin": "^3.0.1",
2021
"cross-env": "^1.0.6",
2122
"css-loader": "^0.23.1",
2223
"file-loader": "^0.8.4",

webpack.config.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
var path = require('path')
22
var webpack = require('webpack')
3+
var cp = require('copy-webpack-plugin')
34

45
module.exports = {
56
entry: './app/site/src/main.js',
@@ -35,7 +36,16 @@ module.exports = {
3536
historyApiFallback: true,
3637
noInfo: true
3738
},
38-
devtool: '#eval-source-map'
39+
devtool: '#eval-source-map',
40+
plugins: [
41+
new cp([
42+
{
43+
context: path.join(__dirname, 'app/site/src/assets'),
44+
from: 'logo.png',
45+
to: path.join(__dirname, 'app/site/dist'),
46+
}
47+
])
48+
]
3949
}
4050

4151
if (process.env.NODE_ENV === 'production') {

0 commit comments

Comments
 (0)