Created
February 21, 2018 06:08
-
-
Save wayanjimmy/47e0528e77fa05ecc29fa2bdb88cc46f to your computer and use it in GitHub Desktop.
Some neutrino config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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