mirror of https://github.com/FreeTubeApp/FreeTube
Stop setting node modules path now that we bundle the modules (#4809)
This commit is contained in:
parent
9d7500b9a1
commit
31c813ddfd
|
@ -126,10 +126,7 @@ const config = {
|
||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
excludeChunks: ['processTaskWorker'],
|
excludeChunks: ['processTaskWorker'],
|
||||||
filename: 'index.html',
|
filename: 'index.html',
|
||||||
template: path.resolve(__dirname, '../src/index.ejs'),
|
template: path.resolve(__dirname, '../src/index.ejs')
|
||||||
nodeModules: isDevMode
|
|
||||||
? path.resolve(__dirname, '../node_modules')
|
|
||||||
: false,
|
|
||||||
}),
|
}),
|
||||||
new VueLoaderPlugin(),
|
new VueLoaderPlugin(),
|
||||||
new MiniCssExtractPlugin({
|
new MiniCssExtractPlugin({
|
||||||
|
|
|
@ -136,8 +136,7 @@ const config = {
|
||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
excludeChunks: ['processTaskWorker'],
|
excludeChunks: ['processTaskWorker'],
|
||||||
filename: 'index.html',
|
filename: 'index.html',
|
||||||
template: path.resolve(__dirname, '../src/index.ejs'),
|
template: path.resolve(__dirname, '../src/index.ejs')
|
||||||
nodeModules: false,
|
|
||||||
}),
|
}),
|
||||||
new VueLoaderPlugin(),
|
new VueLoaderPlugin(),
|
||||||
new MiniCssExtractPlugin({
|
new MiniCssExtractPlugin({
|
||||||
|
|
|
@ -9,13 +9,6 @@
|
||||||
<link rel="manifest" href="static/manifest.json" />
|
<link rel="manifest" href="static/manifest.json" />
|
||||||
<% } %>
|
<% } %>
|
||||||
<title></title>
|
<title></title>
|
||||||
<% if (htmlWebpackPlugin.options.nodeModules) { %>
|
|
||||||
<script>
|
|
||||||
require('module').globalPaths.push(
|
|
||||||
`<%= htmlWebpackPlugin.options.nodeModules.replace(/\\/g, '\\\\') %>`
|
|
||||||
)
|
|
||||||
</script>
|
|
||||||
<% } %>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
Loading…
Reference in New Issue