Skip to content

Commit e0468c0

Browse files
committed
fix: fix the config of dev(close #43)
1 parent 1112a73 commit e0468c0

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

build/build-examples.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const path = require( 'path' )
99
const chalk = require( 'chalk' )
1010
const webpack = require( 'webpack' )
1111
const config = require( '../config' )
12-
const webpackConfig = require( './webpack.prod.conf' )
12+
const webpackConfig = require( './webpack.examples.conf' )
1313

1414
const spinner = ora( 'building for production...' )
1515
spinner.start()

build/webpack.dev.conf.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ const HOST = process.env.HOST
1414
const PORT = process.env.PORT && Number( process.env.PORT )
1515

1616
const devWebpackConfig = merge( baseWebpackConfig, {
17+
entry: {
18+
app: './examples/index.js'
19+
},
1720
module: {
1821
rules: utils.styleLoaders( { sourceMap: config.dev.cssSourceMap, usePostCSS: true } )
1922
},

build/webpack.examples.conf.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ const env = process.env.NODE_ENV === 'testing'
1616
: require( '../config/prod.env' )
1717

1818
const webpackConfig = merge( baseWebpackConfig, {
19+
entry: {
20+
app: './examples/index.js'
21+
},
1922
module: {
2023
rules: utils.styleLoaders( {
2124
sourceMap: config.build.productionSourceMap,

0 commit comments

Comments
 (0)