Initial boilerplate setup
This commit is contained in:
1 parent
739aca9495
commit
8ee9e8a838
17 files changed
+29239
No files matched your search
@@ -0,0 +1,25 @@
|
||||
const pathConfig = require('./webpack.path.config')
|
||||
|
||||
module.exports = {
|
||||
context: pathConfig.context,
|
||||
|
||||
entry: ['babel-polyfill', './src/index.js'],
|
||||
|
||||
module: {
|
||||
rules: [
|
||||
{ test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader' },
|
||||
{
|
||||
test: /\.(png|svg|jpg|gif)$/,
|
||||
use: [{ loader: 'file-loader' }
|
||||
]
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
exclude: /node_modules/,
|
||||
use: {
|
||||
loader: 'babel-loader'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
const path = require('path')
|
||||
|
||||
const context = path.resolve(__dirname, '../../..')
|
||||
|
||||
module.exports = {
|
||||
context
|
||||
}
|
||||
Reference in new issue
Block a user