-
-
Save coryhouse/d611e83e432f3ae65cc46ebb9b599930 to your computer and use it in GitHub Desktop.
import path from 'path'; | |
export default { | |
debug: true, | |
devtool: 'inline-source-map', | |
noInfo: false, | |
entry: [ | |
path.resolve(__dirname, 'src/index') | |
], | |
target: 'web', | |
output: { | |
path: path.resolve(__dirname, 'src'), | |
publicPath: '/', | |
filename: 'bundle.js' | |
}, | |
plugins: [], | |
module: { | |
loaders: [ | |
{test: /\.js$/, exclude: /node_modules/, loaders: ['babel']}, | |
{test: /\.css$/, loaders: ['style','css']} | |
] | |
} | |
} |
@momoduoladapo - I deleted your comment since people need to use the versions I specify to follow along.
So sorry about that, i am also taking the course and i have reverted to the originally specified versions you advised.
So now all i updated was my webpack.config.dev.js and the index.js in babel-loader
Cheers
@coryhouse amazing course!!! Thank you so much!!! Would it be possible to get an updated version of this for the latest version of webpack?
@Frankie-B - Please post on the course discussion board on Pluralsight. I provide support there.
Please @coryhouse, sir please i am having error using this code. Can you help me detect the problem. Thanks
`
import path from 'path';
export default {
debug: true,
devtool: 'inline-source-map',
noInfo: false,
entry: [
path.resolve(__dirname, 'src/index')
],
target: 'web',
output: {
path: path.resolve(__dirname, 'src'),
publicPath: '/',
filename: 'bundle.js'
},
plugins: [],
module: {
loaders: [
{test: /.js$/, exclude: /node_modules/, loaders: ['babel']},
{test: /.css$/, loaders: ['style','css']}
]
}
}`
Please post questions on the course discussion board on Pluralsight. Include a link to your GitHub.
@momoduoladapo - I deleted your comment since people need to use the versions I specify to follow along.