add public files js css and images copied in the demo shell dist (#1649)

This commit is contained in:
Eugenio Romano 2017-02-24 14:23:29 +00:00 committed by Denys Vuika
parent 14c7f0409b
commit 619792e004
2 changed files with 28 additions and 28 deletions

View File

@ -81,4 +81,22 @@ Directory structure:
│ └── fr.json
```
## Custom-files
If you need to add custom files on your project you can add this files in the folders
```
.
├── public/
│ ├── images/
│ ├── css/
│ └── js/
```
those folder above wil be copied in the root of your project and you can refer to them for example as
* './images/custom_image.png'
* './js/custom_script.js'
* './css/custom_style.css'
for more complex scenario you need to modify the webpack file in the config folder.

View File

@ -159,40 +159,22 @@ module.exports = {
to: 'js/material.min.js',
flatten: true
}, {
context: 'public',
from: 'css/material.orange-blue.min.css',
to: 'css/material.orange-blue.min.css',
flatten: true
}, {
context: 'node_modules',
from: 'material-design-icons/iconfont/',
to: 'css/iconfont/',
flatten: true
}, {
context: 'public',
from: 'js/typedarray.js',
to: 'js/typedarray.js',
flatten: true
from: 'js/',
to: 'js/'
},{
context: 'public',
from: 'css/',
to: 'css/'
}, {
context: 'public',
from: 'js/Blob.js',
to: 'js/Blob.js',
flatten: true
}, {
context: 'public',
from: 'js/formdata.js',
to: 'js/formdata.js',
flatten: true
}, {
context: 'public',
from: 'js/promisePolyfill.js',
to: 'js/promisePolyfill.js',
flatten: true
}, {
context: 'public',
from: 'css/muli-font.css',
to: 'css/muli-font.css',
flatten: true
from: 'images/',
to: 'images/'
}
]),