Removed old webpack code
This commit is contained in:
parent
d8beb97012
commit
3dfcd5f649
@ -1,54 +0,0 @@
|
||||
var path = require("path");
|
||||
var HtmlWebpackPlugin = require("html-webpack-plugin");
|
||||
var webpack = require("webpack");
|
||||
module.exports = {
|
||||
context: path.join(__dirname, "src"),
|
||||
entry: "./index.js",
|
||||
output: {
|
||||
path: path.join(__dirname, "build"),
|
||||
filename: "app.js"
|
||||
},
|
||||
plugins: [
|
||||
new HtmlWebpackPlugin({
|
||||
template: "./index.html"
|
||||
}),
|
||||
new webpack.optimize.UglifyJsPlugin()
|
||||
],
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.scss$/,
|
||||
use: [{
|
||||
loader: "style-loader"
|
||||
}, {
|
||||
loader: "css-loader"
|
||||
}, {
|
||||
loader: "sass-loader"
|
||||
}]
|
||||
},
|
||||
{
|
||||
test: /\.hbs$/,
|
||||
use: [
|
||||
{
|
||||
loader: "handlebars-loader"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
exclude: /node_modules/,
|
||||
use: [
|
||||
{
|
||||
loader: "babel-loader",
|
||||
query: {
|
||||
presets: ["es2015"]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
devtool: "source-map"
|
||||
}
|
||||
|
||||
//SASS code from https://github.com/jtangelder/sass-loader licensed under MIT, see https://github.com/jtangelder/sass-loader/blob/master/LICENSE
|
Loading…
Reference in New Issue
Block a user