1
1
mirror of https://github.com/c8r/x0.git synced 2024-08-17 01:10:32 +03:00

Add dev option for custom entry

This commit is contained in:
Brent Jackson 2018-06-11 20:16:48 -04:00
parent 96e12f0a43
commit d99b5fb7b5

View File

@ -23,7 +23,7 @@ module.exports = async (opts) => {
config.mode = 'development'
config.context = opts.dirname
config.entry = path.join(__dirname, './entry')
config.entry = opts.entry || path.join(__dirname, './entry')
config.output= {
path: path.join(process.cwd(), 'dev'),
filename: 'dev.js',