0.4.0 • Published 5 years ago
@straw-hat/neutrino v0.4.0
Straw Hat Neutrino
Welcome,to Neutrino land. This project helps the Webpack setup without losing the power of modifications built-in on Neutrino.
Installing
yarn add -D @straw-hat/neutrino
Usage
Open your .neutrinorc.js
file and add the following code snippet
(Neutrino Customization).
const environment = process.env.NODE_ENV || 'production';
module.exports = {
use: [
['@straw-hat/neutrino', {
env: environment,
envVariables: { NODE_ENV: environment },
publicPath: '/',
appFolderPath: process.cwd(),
generateSourceMap: true,
inlineRuntimeChunk: true,
}]
],
};
We are using @straw-hat/neutrino
preset, it is a combination of
multiple presets
. Check the presets under presets
folder to learn about
individual presets and use them based on your needs.