Merge pull request #1885 from isaaclyman/webpack-path-resolve
Use manual path resolution in webpack.config.js
This commit is contained in:
commit
9b947f41f0
2 changed files with 6 additions and 2 deletions
|
|
@ -70,10 +70,12 @@ Create a `.babelrc` file:
|
|||
Next, create a file called `webpack.config.js`
|
||||
|
||||
```javascript
|
||||
const path = require('path')
|
||||
|
||||
module.exports = {
|
||||
entry: './src/index.js',
|
||||
output: {
|
||||
path: './bin',
|
||||
path: path.resolve(__dirname, './bin'),
|
||||
filename: 'app.js',
|
||||
},
|
||||
module: {
|
||||
|
|
|
|||
|
|
@ -112,10 +112,12 @@ Create a `.babelrc` file:
|
|||
Next, create a file called `webpack.config.js`
|
||||
|
||||
```javascript
|
||||
const path = require('path')
|
||||
|
||||
module.exports = {
|
||||
entry: './src/index.js',
|
||||
output: {
|
||||
path: './bin',
|
||||
path: path.resolve(__dirname, './bin'),
|
||||
filename: 'app.js',
|
||||
},
|
||||
module: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue