Initial commit

This commit is contained in:
Corentin Risselin 2019-12-31 06:03:44 +09:00
commit 56d40196d6
15 changed files with 490 additions and 0 deletions

40
webpack.base.js Normal file
View 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')
}
};