<p>Set the main entry point for the application. If the option is not set, Neutrino defaults it to <code>index.js</code>.
If a relative path is specified, it will be resolved relative to <code>options.source</code>; absolute paths will be used as-is.</p>
<p>Set the main entry point for the application. If the option is not set, Neutrino defaults it to <code>index.*</code> - the extension is resolved by Webpack. The main file by default is not required to be in JavaScript format. If a relative path is specified, it will be resolved relative to <code>options.source</code>; absolute paths will be used as-is.</p>
@ -887,7 +887,7 @@ as failing a pull request on continuous integration if any tests fail or if ther
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"CLI","level":"1.12","depth":1,"next":{"title":"Upgrading from v4 to v5","level":"1.13","depth":1,"path":"upgrading-neutrino.md","ref":"./upgrading-neutrino.md","articles":[]},"previous":{"title":"API","level":"1.11","depth":1,"path":"api/README.md","ref":"./api/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","prism","-highlight","github","anchorjs","npmsearchlist"],"root":"./docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"prism":{},"github":{"url":"https://github.com/mozilla-neutrino/neutrino-dev/"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"npmsearchlist":{},"fontsettings":{"theme":"white","family":"sans","size":2},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit page","base":"https://github.com/mozilla-neutrino/neutrino-dev/tree/master/docs"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchorjs":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Neutrino","gitbook":"*"},"file":{"path":"cli/README.md","mtime":"2017-03-24T23:27:54.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-04-25T14:21:52.732Z"},"basePath":"..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"CLI","level":"1.12","depth":1,"next":{"title":"Upgrading from v4 to v5","level":"1.13","depth":1,"path":"upgrading-neutrino.md","ref":"./upgrading-neutrino.md","articles":[]},"previous":{"title":"API","level":"1.11","depth":1,"path":"api/README.md","ref":"./api/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","prism","-highlight","github","anchorjs","npmsearchlist"],"root":"./docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"prism":{},"github":{"url":"https://github.com/mozilla-neutrino/neutrino-dev/"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"npmsearchlist":{},"fontsettings":{"theme":"white","family":"sans","size":2},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit page","base":"https://github.com/mozilla-neutrino/neutrino-dev/tree/master/docs"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchorjs":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Neutrino","gitbook":"*"},"file":{"path":"cli/README.md","mtime":"2017-03-24T23:27:54.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-05-02T22:48:12.565Z"},"basePath":"..","book":{"language":""}});
@ -829,7 +829,7 @@ available at <a href="http://contributor-covenant.org/version/1/4/" target="_bla
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"Code of Conduct","level":"1.15.2","depth":2,"previous":{"title":"Development Process","level":"1.15.1","depth":2,"path":"contributing/development.md","ref":"./contributing/development.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","prism","-highlight","github","anchorjs","npmsearchlist"],"root":"./docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"prism":{},"github":{"url":"https://github.com/mozilla-neutrino/neutrino-dev/"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"npmsearchlist":{},"fontsettings":{"theme":"white","family":"sans","size":2},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit page","base":"https://github.com/mozilla-neutrino/neutrino-dev/tree/master/docs"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchorjs":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Neutrino","gitbook":"*"},"file":{"path":"contributing/code-of-conduct.md","mtime":"2017-02-16T18:32:52.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-04-25T14:21:52.732Z"},"basePath":"..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"Code of Conduct","level":"1.15.2","depth":2,"previous":{"title":"Development Process","level":"1.15.1","depth":2,"path":"contributing/development.md","ref":"./contributing/development.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","prism","-highlight","github","anchorjs","npmsearchlist"],"root":"./docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"prism":{},"github":{"url":"https://github.com/mozilla-neutrino/neutrino-dev/"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"npmsearchlist":{},"fontsettings":{"theme":"white","family":"sans","size":2},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit page","base":"https://github.com/mozilla-neutrino/neutrino-dev/tree/master/docs"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchorjs":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Neutrino","gitbook":"*"},"file":{"path":"contributing/code-of-conduct.md","mtime":"2017-02-16T18:32:52.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-05-02T22:48:12.565Z"},"basePath":"..","book":{"language":""}});
@ -890,7 +890,7 @@ the latest changes from the master branch.</p>
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"Development Process","level":"1.15.1","depth":2,"next":{"title":"Code of Conduct","level":"1.15.2","depth":2,"path":"contributing/code-of-conduct.md","ref":"./contributing/code-of-conduct.md","articles":[]},"previous":{"title":"Contributing","level":"1.15","depth":1,"path":"contributing/README.md","ref":"./contributing/README.md","articles":[{"title":"Development Process","level":"1.15.1","depth":2,"path":"contributing/development.md","ref":"./contributing/development.md","articles":[]},{"title":"Code of Conduct","level":"1.15.2","depth":2,"path":"contributing/code-of-conduct.md","ref":"./contributing/code-of-conduct.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["edit-link","prism","-highlight","github","anchorjs","npmsearchlist"],"root":"./docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"prism":{},"github":{"url":"https://github.com/mozilla-neutrino/neutrino-dev/"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"npmsearchlist":{},"fontsettings":{"theme":"white","family":"sans","size":2},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit page","base":"https://github.com/mozilla-neutrino/neutrino-dev/tree/master/docs"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchorjs":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Neutrino","gitbook":"*"},"file":{"path":"contributing/development.md","mtime":"2017-03-08T20:46:26.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-04-25T14:21:52.732Z"},"basePath":"..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"Development Process","level":"1.15.1","depth":2,"next":{"title":"Code of Conduct","level":"1.15.2","depth":2,"path":"contributing/code-of-conduct.md","ref":"./contributing/code-of-conduct.md","articles":[]},"previous":{"title":"Contributing","level":"1.15","depth":1,"path":"contributing/README.md","ref":"./contributing/README.md","articles":[{"title":"Development Process","level":"1.15.1","depth":2,"path":"contributing/development.md","ref":"./contributing/development.md","articles":[]},{"title":"Code of Conduct","level":"1.15.2","depth":2,"path":"contributing/code-of-conduct.md","ref":"./contributing/code-of-conduct.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["edit-link","prism","-highlight","github","anchorjs","npmsearchlist"],"root":"./docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"prism":{},"github":{"url":"https://github.com/mozilla-neutrino/neutrino-dev/"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"npmsearchlist":{},"fontsettings":{"theme":"white","family":"sans","size":2},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit page","base":"https://github.com/mozilla-neutrino/neutrino-dev/tree/master/docs"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchorjs":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Neutrino","gitbook":"*"},"file":{"path":"contributing/development.md","mtime":"2017-03-08T20:46:26.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-05-02T22:48:12.565Z"},"basePath":"..","book":{"language":""}});
<p>Set the main entry point for the application. If the option is not set, Neutrino defaults it to <code>index.js</code>.
If a relative path is specified, it will be resolved relative to<code>options.source</code>; absolute paths will be used as-is.</p>
<p>Set the main entry point for the application. If the option is not set, Neutrino defaults it to <code>index.*</code> - the extension is resolved by Webpack. If a relative path is specified, it will be resolved relative to <code>options.source</code>; absolute paths will be used as-is.</p>
<p>The main file by default is not required to be in JavaScript format. It also potentially may be JSX, TypeScript or any other preprocessor language. These extensions should be specified in a preset in<code>neutrino.config.resolve.extensions</code>. </p>
<p>Set the main entry point for the application. If the option is not set, Neutrino defaults it to <code>index.js</code>.
If a relative path is specified, it will be resolved relative to<code>options.source</code>; absolute paths will be used as-is.</p>
<p>Set the main entry point for the application. If the option is not set, Neutrino defaults it to <code>index.*</code> - the extension is resolved by Webpack. If a relative path is specified, it will be resolved relative to <code>options.source</code>; absolute paths will be used as-is.</p>
<p>The main file by default is not required to be in JavaScript format. It also potentially may be JSX, TypeScript or any other preprocessor language. These extensions should be specified in a preset in<code>neutrino.config.resolve.extensions</code>. </p>
<p>Set the main entry point for the application. If the option is not set, Neutrino defaults it to <code>index.js</code>.
If a relative path is specified, it will be resolved relative to<code>options.source</code>; absolute paths will be used as-is.</p>
<p>Set the main entry point for the application. If the option is not set, Neutrino defaults it to <code>index.*</code> - the extension is resolved by Webpack. If a relative path is specified, it will be resolved relative to <code>options.source</code>; absolute paths will be used as-is.</p>
<p>The main file by default is not required to be in JavaScript format. It also potentially may be JSX, TypeScript or any other preprocessor language. These extensions should be specified in a preset in<code>neutrino.config.resolve.extensions</code>. </p>
@ -915,8 +915,8 @@ application-specific changes in order to operate.</p>
</code></pre>
<hr>
<ul>
<li>From your <code>index</code> entry point (defaults to <code>src/index.js</code> from <code>neutrino.options.entry</code>), import an <code>AppContainer</code>
from <code>react-hot-loader</code>.</li>
<li>From your <code>index</code> entry point (defaults to <code>src/index.*</code> from <code>neutrino.options.entry</code>), import an <code>AppContainer</code>
from <code>react-hot-loader</code>. The main file may be named <code>index.js</code> or <code>index.jsx</code>. The extension is resolved by Webpack.</li>
<li>Wrap your top-level React component in the <code>AppContainer</code>.</li>
<li>Perform the application render in a reusable function for initial load and subsequent reloads.</li>
<li>Add the <code>hot</code> acceptance to call this function.</li>
@ -986,7 +986,7 @@ containing all resources for developing Neutrino and its core presets. Follow th
@ -855,10 +855,7 @@ override <code>output.publicPath</code>. See the <a href="#Customizing">Customiz
<p>To override the build configuration, start with the documentation on <ahref="../../customization/">customization</a>.
<code>neutrino-preset-web</code> creates some conventions to make overriding the configuration easier once you are ready to make
changes.</p>
<p>By default the Web preset creates a single <strong>main</strong><code>index</code> entry point to your application, and this maps to the
<code>index.js</code> file in the <code>src</code> directory. This value is provided by <code>neutrino.options.entry</code>.
This means that the Web preset is optimized toward the use case of single-page applications over multi-page
applications.</p>
<p>By default the Web preset creates a single <strong>main</strong><code>index</code> entry point to your application, and this maps to the <code>index.*</code> file in the <code>src</code> directory. The extension is resolved by Webpack. This value is provided by <code>neutrino.options.entry</code>. This means that the Web preset is optimized toward the use case of single-page applications over multi-page applications.</p>
<h3id="rules">Rules</h3>
<p>The following is a list of rules and their identifiers which can be overridden:</p>
<ul>
@ -1072,7 +1069,7 @@ containing all resources for developing Neutrino and its core presets. Follow th
@ -994,7 +994,7 @@ instance for production-built bundles.</li>
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"Upgrading from v4 to v5","level":"1.13","depth":1,"next":{"title":"v4 Documentation","level":"1.14","depth":1,"url":"https://github.com/mozilla-neutrino/neutrino-dev/tree/docs-v4/docs","ref":"https://github.com/mozilla-neutrino/neutrino-dev/tree/docs-v4/docs","articles":[]},"previous":{"title":"CLI","level":"1.12","depth":1,"path":"cli/README.md","ref":"./cli/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","prism","-highlight","github","anchorjs","npmsearchlist"],"root":"./docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"prism":{},"github":{"url":"https://github.com/mozilla-neutrino/neutrino-dev/"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"npmsearchlist":{},"fontsettings":{"theme":"white","family":"sans","size":2},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit page","base":"https://github.com/mozilla-neutrino/neutrino-dev/tree/master/docs"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchorjs":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Neutrino","gitbook":"*"},"file":{"path":"upgrading-neutrino.md","mtime":"2017-03-29T13:36:40.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-04-25T14:21:52.732Z"},"basePath":".","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"Upgrading from v4 to v5","level":"1.13","depth":1,"next":{"title":"v4 Documentation","level":"1.14","depth":1,"url":"https://github.com/mozilla-neutrino/neutrino-dev/tree/docs-v4/docs","ref":"https://github.com/mozilla-neutrino/neutrino-dev/tree/docs-v4/docs","articles":[]},"previous":{"title":"CLI","level":"1.12","depth":1,"path":"cli/README.md","ref":"./cli/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","prism","-highlight","github","anchorjs","npmsearchlist"],"root":"./docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"prism":{},"github":{"url":"https://github.com/mozilla-neutrino/neutrino-dev/"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"npmsearchlist":{},"fontsettings":{"theme":"white","family":"sans","size":2},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit page","base":"https://github.com/mozilla-neutrino/neutrino-dev/tree/master/docs"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchorjs":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Neutrino","gitbook":"*"},"file":{"path":"upgrading-neutrino.md","mtime":"2017-03-29T13:36:40.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-05-02T22:48:12.565Z"},"basePath":".","book":{"language":""}});