Converted the core to ES modules

This commit is contained in:
n1474335 2018-03-26 23:14:23 +01:00
parent c1bb93eec1
commit 9b4fc3d3aa
154 changed files with 1901 additions and 2223 deletions

View file

@ -1,5 +1,6 @@
const webpack = require("webpack");
const ExtractTextPlugin = require("extract-text-webpack-plugin");
const WebpackShellPlugin = require("webpack-shell-plugin");
/**
* Webpack configuration details for use with Grunt.
@ -43,6 +44,9 @@ module.exports = {
entryOnly: true
}),
new ExtractTextPlugin("styles.css"),
new WebpackShellPlugin({
onBuildStart: ["node --experimental-modules src/core/config/generateConfig.mjs"],
})
],
resolve: {
alias: {
@ -52,14 +56,10 @@ module.exports = {
module: {
rules: [
{
test: /\.js$/,
test: /\.m?js$/,
exclude: /node_modules/,
loader: "babel-loader?compact=false"
},
{
test: /MetaConfig\.js$/,
loader: "val-loader"
},
{
test: /\.css$/,
use: ExtractTextPlugin.extract({