Merge pull request #1885 from isaaclyman/webpack-path-resolve

Use manual path resolution in webpack.config.js
This commit is contained in:
Pierre-Yves Gérardy 2017-06-27 01:00:35 +02:00 committed by GitHub
commit 9b947f41f0
2 changed files with 6 additions and 2 deletions

View file

@ -70,10 +70,12 @@ Create a `.babelrc` file:
Next, create a file called `webpack.config.js` Next, create a file called `webpack.config.js`
```javascript ```javascript
const path = require('path')
module.exports = { module.exports = {
entry: './src/index.js', entry: './src/index.js',
output: { output: {
path: './bin', path: path.resolve(__dirname, './bin'),
filename: 'app.js', filename: 'app.js',
}, },
module: { module: {

View file

@ -112,10 +112,12 @@ Create a `.babelrc` file:
Next, create a file called `webpack.config.js` Next, create a file called `webpack.config.js`
```javascript ```javascript
const path = require('path')
module.exports = { module.exports = {
entry: './src/index.js', entry: './src/index.js',
output: { output: {
path: './bin', path: path.resolve(__dirname, './bin'),
filename: 'app.js', filename: 'app.js',
}, },
module: { module: {