mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
copy entire public folder (#1663)
* copy entire public folder * misspelling in readme
This commit is contained in:
committed by
Denys Vuika
parent
85adf3c2d9
commit
45a37d61f5
@@ -41,7 +41,7 @@ npm run build
|
|||||||
npm run start:dist
|
npm run start:dist
|
||||||
```
|
```
|
||||||
|
|
||||||
This command builds broject in `production` mode.
|
This command builds project in `production` mode.
|
||||||
All output is placed to `dist` folder and can be served your preferred web server.
|
All output is placed to `dist` folder and can be served your preferred web server.
|
||||||
You should need no additional files outside the `dist` folder.
|
You should need no additional files outside the `dist` folder.
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@ Directory structure:
|
|||||||
|
|
||||||
## Custom-files
|
## Custom-files
|
||||||
|
|
||||||
If you need to add custom files on your project you can add this files in the folders
|
If you need to add custom files on your project you can add this files in the folders public
|
||||||
|
|
||||||
```
|
```
|
||||||
.
|
.
|
||||||
@@ -93,10 +93,8 @@ If you need to add custom files on your project you can add this files in the fo
|
|||||||
│ └── js/
|
│ └── js/
|
||||||
```
|
```
|
||||||
|
|
||||||
those folder above wil be copied in the root of your project and you can refer to them for example as
|
the public folder above wil be copied in the root of your project and you can refer to them for example as
|
||||||
|
|
||||||
* './images/custom_image.png'
|
* './images/custom_image.png'
|
||||||
* './js/custom_script.js'
|
* './js/custom_script.js'
|
||||||
* './css/custom_style.css'
|
* './css/custom_style.css'
|
||||||
|
|
||||||
for more complex scenario you need to modify the webpack file in the config folder.
|
|
@@ -165,18 +165,9 @@ module.exports = {
|
|||||||
flatten: true
|
flatten: true
|
||||||
}, {
|
}, {
|
||||||
context: 'public',
|
context: 'public',
|
||||||
from: 'js/',
|
from: '',
|
||||||
to: 'js/'
|
to: ''
|
||||||
},{
|
|
||||||
context: 'public',
|
|
||||||
from: 'css/',
|
|
||||||
to: 'css/'
|
|
||||||
}, {
|
|
||||||
context: 'public',
|
|
||||||
from: 'images/',
|
|
||||||
to: 'images/'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
]),
|
]),
|
||||||
|
|
||||||
new webpack.optimize.CommonsChunkPlugin({
|
new webpack.optimize.CommonsChunkPlugin({
|
||||||
|
Reference in New Issue
Block a user