|
@@ -23,11 +23,11 @@
|
|
|
|
|
|
<h2>Installation via npm</h2>
|
|
|
|
|
|
- <p>Three.js is published as an npm module, see: <a href="https://www.npmjs.com/package/three" target="_blank">npm</a>. This means all you need to do to include three.js into your project is run "npm install three"</p>
|
|
|
+ <p>Three.js is published as an npm module, see: [link:https://www.npmjs.com/package/three npm]. This means all you need to do to include three.js into your project is run "npm install three"</p>
|
|
|
|
|
|
<h2>Importing the module</h2>
|
|
|
|
|
|
- <p>Assuming that you're bundling your files with a tool such as <a href="https://webpack.github.io/" target="_blank">Webpack</a> or <a href="https://github.com/substack/node-browserify" target="_blank">Browserify</a>, which allow you to "require('modules') in the browser by bundling up all of your dependencies."</p>
|
|
|
+ <p>Assuming that you're bundling your files with a tool such as [link:https://webpack.github.io/ Webpack] or [link:https://github.com/substack/node-browserify Browserify], which allow you to "require('modules') in the browser by bundling up all of your dependencies."</p>
|
|
|
|
|
|
<p>
|
|
|
You should now be able to import the module into your source files and continue to use it as per normal.
|
|
@@ -41,7 +41,7 @@
|
|
|
</code>
|
|
|
|
|
|
<p>
|
|
|
- You're also able to leverage <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import" target="_blank">ES6 import syntax</a>:
|
|
|
+ You're also able to leverage [link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import ES6 import syntax]:
|
|
|
</p>
|
|
|
|
|
|
<code>
|