Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ module.exports = {
extensions: ['.js', '.elm']
},
module: {
noParse: /\.elm$/,
strictExportPresence: true,
rules: [
// Disable require.ensure as it's not a standard language feature.
Expand Down Expand Up @@ -168,6 +167,9 @@ module.exports = {
flags: 'g'
}
},
{
loader: require.resolve('elm-asset-webpack-loader')
},
{
loader: require.resolve('elm-webpack-loader'),
options: {
Expand Down
13 changes: 6 additions & 7 deletions config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,6 @@ module.exports = {
module: {
strictExportPresence: true,

noParse: /\.elm$/,

rules: [
{
test: /\.js$/,
Expand Down Expand Up @@ -220,6 +218,9 @@ module.exports = {
flags: 'g'
}
},
{
loader: require.resolve('elm-asset-webpack-loader')
},
{
// Use the local installation of elm make
loader: require.resolve('elm-webpack-loader'),
Expand Down Expand Up @@ -339,16 +340,14 @@ module.exports = {
publicPath: publicPath
}),
// Copies the public folder to the build folder
new CopyPlugin([
{ from: './public/', to: './' },
]),
new CopyPlugin([{ from: './public/', to: './' }]),
// Generate a service worker script that will precache, and keep up to date,
// the HTML & assets that are part of the Webpack build.
new workboxPlugin.GenerateSW({
swDest: "./service-worker.js",
swDest: './service-worker.js',
skipWaiting: true,
clientsClaim: true
}),
})
],
// Some libraries import Node modules but don't use them in the browser.
// Tell Webpack to provide empty mocks for them so importing them works.
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"cross-env": "^5.2.0",
"cz-conventional-changelog": "^3.0.2",
"dir-compare": "^1.4.0",
"elm-asset-webpack-loader": "1.1.1",
"eslint": "^6.1.0",
"eslint-plugin-prettier": "^3.1.0",
"husky": "^3.0.3",
Expand Down