I'm trying to require a minified version of the parsleyjs library but it's producing a console js error on page load (webpack compilation works fine but it seems it's corrupting the source).
Installed using
npm install parsleyjs
Required using
require('parsleyjs/parsleyjs') : this works on page load
require('parsleyjs/parsleyjs.min') : this gives the error on page load Uncaught ReferenceError: returntrue is not defined
Webpack Config
resolve: {
extensions: ['', '.js', '.coffee', '.scss', '.less', '.css'],
},
module: {
loaders : {
{
test: /\.css$/,
loader: "style-loader!css-loader"
}
}
}
Stack Trace
(anonymous function) @ parsley.min.js:8
(anonymous function) @ parsley.min.js:8
(anonymous function) @ parsley.min.js:8
(anonymous function) @ parsley.min.js:8
__webpack_require__ @ bootstrap 578d15ff7d895d57a5b4:19
(anonymous function) @ entry.coffee:26
__webpack_require__ @ bootstrap 578d15ff7d895d57a5b4:19
(anonymous function) @ bootstrap 578d15ff7d895d57a5b4:39
__webpack_require__ @ bootstrap 578d15ff7d895d57a5b4:19
(anonymous function) @ bootstrap 578d15ff7d895d57a5b4:39
(anonymous function) @ bootstrap 578d15ff7d895d57a5b4:39
I'm trying to require a minified version of the parsleyjs library but it's producing a console js error on page load (webpack compilation works fine but it seems it's corrupting the source).
Installed using
npm install parsleyjsRequired using
require('parsleyjs/parsleyjs'): this works on page loadrequire('parsleyjs/parsleyjs.min'): this gives the error on page loadUncaught ReferenceError: returntrue is not definedWebpack Config
Stack Trace