Initial commit
This commit is contained in:
30
webpack.config.js
Normal file
30
webpack.config.js
Normal file
@@ -0,0 +1,30 @@
|
||||
/// <binding Clean='Run - Development' />
|
||||
//"use strict";
|
||||
var path = require('path');
|
||||
|
||||
module.exports = {
|
||||
entry: "./source/index.js",
|
||||
output: {
|
||||
path: path.resolve(__dirname, "public"),
|
||||
publicPath: "/public/",
|
||||
filename: "bundle.js"
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{ test: /\.css$/, loader: "style-loader!css-loader" },
|
||||
{ test: /\.(ttf|svg|png|jpg|eot|woff2|woff)$/, loader: "url-loader" },
|
||||
{ test: /\.m?js$/,
|
||||
exclude: /(node_modules|brower_components)/,
|
||||
use: {
|
||||
loader: 'babel-loader',
|
||||
options: {
|
||||
presets: ['@babel/env', '@babel/react'],
|
||||
}
|
||||
}
|
||||
},
|
||||
]
|
||||
},
|
||||
devServer: {
|
||||
historyApiFallback: true
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user