Skip to content

Commit 1a942ab

Browse files
olistikskipjack
authored andcommitted
docs(guides): update diff in asset-management (#1411)
Correct certain errors in the code block.
1 parent c0dafcf commit 1a942ab

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

content/guides/asset-management.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ __webpack.config.js__
591591
__src/index.js__
592592

593593
``` diff
594-
- import _ from 'lodash';
594+
import _ from 'lodash';
595595
- import './style.css';
596596
- import Icon from './icon.png';
597597
- import Data from './data.xml';
@@ -600,7 +600,7 @@ __src/index.js__
600600
var element = document.createElement('div');
601601
-
602602
- // Lodash, now imported by this script
603-
- element.innerHTML = _.join(['Hello', 'webpack'], ' ');
603+
element.innerHTML = _.join(['Hello', 'webpack'], ' ');
604604
- element.classList.add('hello');
605605
-
606606
- // Add the image to our existing div.
@@ -610,7 +610,6 @@ __src/index.js__
610610
- element.appendChild(myIcon);
611611
-
612612
- console.log(Data);
613-
+ element.innerHTML = _.join(['Hello', 'webpack'], ' ');
614613

615614
return element;
616615
}

0 commit comments

Comments
 (0)