Skip to content

Instantly share code, notes, and snippets.

@wayanjimmy
Created February 21, 2018 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wayanjimmy/47e0528e77fa05ecc29fa2bdb88cc46f to your computer and use it in GitHub Desktop.
Save wayanjimmy/47e0528e77fa05ecc29fa2bdb88cc46f to your computer and use it in GitHub Desktop.
Some neutrino config
const { ProvidePlugin } = require('webpack');
const path = require('path');
module.exports = {
use: [
[
'@neutrinojs/react',
{
html: {
title: 'sherly-married'
}
},
(neutrino) => {
neutrino.config
.plugin('provide')
.use(ProvidePlugin, [{
$: 'jquery',
jQuery: 'jquery',
}]);
neutrino.config
.merge({
resolve: {
alias: {
'@': path.resolve(process.cwd(), 'src'),
},
},
});
}
]
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment