Initial commit
This commit is contained in:
commit
56d40196d6
15 changed files with 490 additions and 0 deletions
40
webpack.base.js
Normal file
40
webpack.base.js
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
mode: "none",
|
||||
entry: './src/index.jsx',
|
||||
module:
|
||||
{
|
||||
rules: [
|
||||
{
|
||||
test: /\.jsx$/,
|
||||
loader: "babel-loader",
|
||||
options:
|
||||
{
|
||||
presets: ["@babel/preset-env"],
|
||||
plugins: [
|
||||
["babel-plugin-inferno",
|
||||
{
|
||||
"imports": true
|
||||
}]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
test: /src.*\.css$/,
|
||||
use: ['style-loader', 'css-loader']
|
||||
},
|
||||
{
|
||||
test: /assets.*\.(jpg|png|svg|css)$/,
|
||||
loader: 'file-loader',
|
||||
options: {
|
||||
name: '[path][name].[ext]',
|
||||
},
|
||||
}]
|
||||
},
|
||||
output:
|
||||
{
|
||||
filename: 'bundle.js',
|
||||
path: path.resolve(__dirname, 'public')
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue