Unverified Commit 4f85ee06 authored by Florent Chehab's avatar Florent Chehab
Browse files

fix(front deps): clean after removal of postcss

No more warning on up 🎉, doesn't seem to be use anyway
parent 0d8f8179
{
"plugins": {
"autoprefixer": {
"browsers": ["last 2 versions"]
}
}
}
......@@ -6,14 +6,14 @@ const config = {
entry: {
main: ["./src/entry/mainApp.jsx"],
rgpdCgu: ["./src/entry/rgpdCguForm.jsx"],
rgpdRaw: ["./src/entry/rgpdRaw.jsx"]
rgpdRaw: ["./src/entry/rgpdRaw.jsx"],
},
output: {
path: __dirname + "/dist/bundles",
filename: "[name]-[hash].js"
filename: "[name]-[hash].js",
},
resolve: {
extensions: ["*", ".json", ".js", ".jsx"]
extensions: ["*", ".json", ".js", ".jsx"],
},
module: {
rules: [
......@@ -22,8 +22,8 @@ const config = {
exclude: /node_modules/,
loader: "babel-loader",
options: {
compact: true
}
compact: true,
},
},
{
test: /\.(sa|sc|c)ss$/,
......@@ -33,17 +33,16 @@ const config = {
options: {
// you can specify a publicPath here
// by default it use publicPath in webpackOptions.output
publicPath: "../"
}
publicPath: "../",
},
},
"css-loader",
"postcss-loader",
"sass-loader"
]
"sass-loader",
],
},
{
test: /\.yml/,
use: "js-yaml-loader"
use: "js-yaml-loader",
},
{
test: /\.(woff(2)?|ttf|eot|svg)(\?v=\d+\.\d+\.\d+)?$/,
......@@ -53,29 +52,29 @@ const config = {
options: {
name: "[name].[ext]",
publicPath: "./fonts/",
outputPath: "fonts/"
}
}
]
outputPath: "fonts/",
},
},
],
},
{
test: /\.(md)$/,
use: "raw-loader"
}
]
use: "raw-loader",
},
],
},
plugins: [
new MiniCssExtractPlugin({
// Options similar to the same options in webpackOptions.output
// both options are optional
filename: "[name]-[hash].css",
chunkFilename: "[id]-[hash].css"
chunkFilename: "[id]-[hash].css",
}),
new CopyPlugin([
{ from: "node_modules/mapbox-gl/dist", to: "mapbox-gl-dist" }
{ from: "node_modules/mapbox-gl/dist", to: "mapbox-gl-dist" },
]),
new BundleTracker({ filename: "./webpack-stats.json" })
]
new BundleTracker({ filename: "./webpack-stats.json" }),
],
};
module.exports = config;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment