Skip to content

Commit bbdf58c

Browse files
josephfrazierstefanbuck
authored andcommitted
webpack: Use absolute output path (OctoLinker#336)
This will avoid the following error once webpack is updated: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - configuration.output.path: The provided value "dist" is not an absolute path! See josephfrazier/octopermalinker@6e0e4fe
1 parent 3223f0d commit bbdf58c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const path = require('path');
12
const CopyWebpackPlugin = require('copy-webpack-plugin'); // eslint-disable-line
23

34
module.exports = {
@@ -8,7 +9,7 @@ module.exports = {
89
},
910
devtool: 'source-map',
1011
output: {
11-
path: 'dist',
12+
path: path.resolve(__dirname, 'dist'),
1213
filename: '[name].js',
1314
},
1415
plugins: [

0 commit comments

Comments
 (0)