@lipemat/js-boilerplate 8.6.0 → 8.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/webpack.dev.js +2 -1
- package/package.json +1 -1
package/config/webpack.dev.js
CHANGED
|
@@ -8,6 +8,7 @@ const config = require( '../helpers/package-config' );
|
|
|
8
8
|
const postcssOptions = getConfig( 'postcss.config.js' );
|
|
9
9
|
const babelOptions = getConfig( 'babel.config.js' );
|
|
10
10
|
const cssLoaderOptions = getConfig( 'css-loader.config.js' );
|
|
11
|
+
const devServerOptions = getConfig( 'dev-server.config.js' );
|
|
11
12
|
|
|
12
13
|
// To allow line numbers to show up in console errors. @see React Error Boundaries.
|
|
13
14
|
babelOptions.plugins.unshift( '@babel/plugin-transform-react-jsx-source' );
|
|
@@ -56,7 +57,7 @@ module.exports = {
|
|
|
56
57
|
output: {
|
|
57
58
|
path: path.resolve( config.workingDirectory, 'dist' ),
|
|
58
59
|
filename: '[name].js',
|
|
59
|
-
publicPath: config.url + ':
|
|
60
|
+
publicPath: config.url + ':' + devServerOptions.port + '/js/dist/',
|
|
60
61
|
chunkFilename: '[name].js',
|
|
61
62
|
},
|
|
62
63
|
resolve: {
|