mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Copy assets to app directory
This commit is contained in:
parent
d05d82cb32
commit
2a13f3a38f
2 changed files with 9 additions and 1 deletions
|
|
@ -34,6 +34,7 @@
|
|||
"babel-eslint": "6.1.2",
|
||||
"babel-loader": "6.2.4",
|
||||
"babel-preset-react": "6.11.1",
|
||||
"copy-webpack-plugin": "^3.0.1",
|
||||
"electron-builder": "5.17.0",
|
||||
"electron-prebuilt": "1.3.1",
|
||||
"eslint": "3.1.1",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
const webpack = require('webpack');
|
||||
const Copy = require('copy-webpack-plugin');
|
||||
const path = require('path');
|
||||
|
||||
const nodeEnv = process.env.NODE_ENV || 'development';
|
||||
|
|
@ -29,7 +30,13 @@ module.exports = {
|
|||
'process.env': {
|
||||
'NODE_ENV': JSON.stringify(nodeEnv)
|
||||
}
|
||||
})
|
||||
}),
|
||||
new Copy([
|
||||
{
|
||||
from: './assets',
|
||||
to: './assets'
|
||||
}
|
||||
])
|
||||
],
|
||||
target: 'electron'
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue